1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct ProcedureExecutionNode {
5 #[prost(oneof = "procedure_execution_node::Node", tags = "1, 2")]
6 pub node: ::core::option::Option<procedure_execution_node::Node>,
7}
8pub mod procedure_execution_node {
10 #[derive(Clone, PartialEq, ::prost::Oneof)]
11 pub enum Node {
12 #[prost(message, tag = "1")]
15 Section(super::ProcedureExecutionSectionNode),
16 #[prost(message, tag = "2")]
18 Step(super::ProcedureExecutionStepNode),
19 }
20}
21#[derive(Clone, PartialEq, ::prost::Message)]
23pub struct ProcedureExecutionSectionNode {
24 #[prost(string, tag = "1")]
26 pub id: ::prost::alloc::string::String,
27 #[prost(string, tag = "2")]
29 pub template_node_id: ::prost::alloc::string::String,
30 #[prost(string, tag = "3")]
32 pub title: ::prost::alloc::string::String,
33 #[prost(string, optional, tag = "4")]
35 pub description: ::core::option::Option<::prost::alloc::string::String>,
36 #[prost(string, optional, tag = "5")]
39 pub template_commit_id: ::core::option::Option<::prost::alloc::string::String>,
40}
41#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct ProcedureExecutionStepNode {
44 #[prost(string, tag = "1")]
46 pub id: ::prost::alloc::string::String,
47 #[prost(string, tag = "2")]
49 pub template_node_id: ::prost::alloc::string::String,
50 #[prost(bool, tag = "3")]
53 pub is_outdated: bool,
54 #[prost(message, optional, tag = "4")]
56 pub state: ::core::option::Option<ExecutionStepState>,
57 #[prost(message, optional, tag = "5")]
59 pub value: ::core::option::Option<StepContentValue>,
60 #[prost(message, optional, tag = "6")]
62 pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
63 #[prost(message, optional, tag = "7")]
69 pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
70 #[prost(message, repeated, tag = "8")]
74 pub completion_action_statuses: ::prost::alloc::vec::Vec<CompletionActionStatus>,
75 #[prost(map = "string, message", tag = "10")]
81 pub outputs: ::std::collections::HashMap<
82 ::prost::alloc::string::String,
83 FieldOutput,
84 >,
85 #[prost(string, optional, tag = "11")]
88 pub template_commit_id: ::core::option::Option<::prost::alloc::string::String>,
89}
90#[derive(Clone, Copy, PartialEq, ::prost::Message)]
93pub struct ExecutionStepNotStarted {}
94#[derive(Clone, PartialEq, ::prost::Message)]
98pub struct ExecutionStepSkipped {
99 #[prost(message, optional, tag = "1")]
100 pub skipped_at: ::core::option::Option<
101 super::super::super::super::google::protobuf::Timestamp,
102 >,
103 #[prost(string, tag = "2")]
104 pub skipped_by: ::prost::alloc::string::String,
105 #[prost(string, optional, tag = "3")]
106 pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
107 #[prost(message, optional, tag = "4")]
109 pub started_at: ::core::option::Option<
110 super::super::super::super::google::protobuf::Timestamp,
111 >,
112 #[prost(string, optional, tag = "5")]
113 pub started_by: ::core::option::Option<::prost::alloc::string::String>,
114 #[prost(message, optional, tag = "6")]
116 pub submitted_at: ::core::option::Option<
117 super::super::super::super::google::protobuf::Timestamp,
118 >,
119 #[prost(string, optional, tag = "7")]
120 pub submitted_by: ::core::option::Option<::prost::alloc::string::String>,
121}
122#[derive(Clone, PartialEq, ::prost::Message)]
126pub struct ExecutionStepInProgress {
127 #[prost(message, optional, tag = "1")]
128 pub started_at: ::core::option::Option<
129 super::super::super::super::google::protobuf::Timestamp,
130 >,
131 #[prost(string, tag = "2")]
132 pub started_by: ::prost::alloc::string::String,
133}
134#[derive(Clone, PartialEq, ::prost::Message)]
140pub struct ExecutionStepSubmitted {
141 #[prost(message, optional, tag = "1")]
142 pub started_at: ::core::option::Option<
143 super::super::super::super::google::protobuf::Timestamp,
144 >,
145 #[prost(string, tag = "2")]
146 pub started_by: ::prost::alloc::string::String,
147 #[prost(message, optional, tag = "3")]
148 pub submitted_at: ::core::option::Option<
149 super::super::super::super::google::protobuf::Timestamp,
150 >,
151 #[prost(string, tag = "4")]
152 pub submitted_by: ::prost::alloc::string::String,
153}
154#[derive(Clone, PartialEq, ::prost::Message)]
157pub struct ExecutionStepSucceeded {
158 #[prost(message, optional, tag = "1")]
159 pub started_at: ::core::option::Option<
160 super::super::super::super::google::protobuf::Timestamp,
161 >,
162 #[prost(string, tag = "2")]
163 pub started_by: ::prost::alloc::string::String,
164 #[prost(message, optional, tag = "3")]
165 pub submitted_at: ::core::option::Option<
166 super::super::super::super::google::protobuf::Timestamp,
167 >,
168 #[prost(string, tag = "4")]
169 pub submitted_by: ::prost::alloc::string::String,
170 #[prost(message, optional, tag = "5")]
171 pub succeeded_at: ::core::option::Option<
172 super::super::super::super::google::protobuf::Timestamp,
173 >,
174 #[prost(string, tag = "6")]
175 pub succeeded_by: ::prost::alloc::string::String,
176}
177#[derive(Clone, PartialEq, ::prost::Message)]
182pub struct ExecutionStepErrored {
183 #[prost(message, optional, tag = "1")]
185 pub started_at: ::core::option::Option<
186 super::super::super::super::google::protobuf::Timestamp,
187 >,
188 #[prost(string, optional, tag = "2")]
189 pub started_by: ::core::option::Option<::prost::alloc::string::String>,
190 #[prost(message, optional, tag = "3")]
192 pub submitted_at: ::core::option::Option<
193 super::super::super::super::google::protobuf::Timestamp,
194 >,
195 #[prost(string, optional, tag = "4")]
196 pub submitted_by: ::core::option::Option<::prost::alloc::string::String>,
197 #[prost(message, optional, tag = "5")]
198 pub errored_at: ::core::option::Option<
199 super::super::super::super::google::protobuf::Timestamp,
200 >,
201 #[prost(string, tag = "6")]
202 pub errored_by: ::prost::alloc::string::String,
203 #[prost(string, tag = "7")]
204 pub error: ::prost::alloc::string::String,
205 #[prost(message, optional, tag = "8")]
207 pub skipped_at: ::core::option::Option<
208 super::super::super::super::google::protobuf::Timestamp,
209 >,
210 #[prost(string, optional, tag = "9")]
211 pub skipped_by: ::core::option::Option<::prost::alloc::string::String>,
212 #[prost(string, optional, tag = "10")]
213 pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
214 #[prost(message, optional, tag = "11")]
216 pub succeeded_at: ::core::option::Option<
217 super::super::super::super::google::protobuf::Timestamp,
218 >,
219 #[prost(string, optional, tag = "12")]
220 pub succeeded_by: ::core::option::Option<::prost::alloc::string::String>,
221}
222#[derive(Clone, PartialEq, ::prost::Message)]
237pub struct ExecutionStepState {
238 #[prost(oneof = "execution_step_state::State", tags = "1, 2, 3, 4, 5, 6")]
239 pub state: ::core::option::Option<execution_step_state::State>,
240}
241pub mod execution_step_state {
243 #[derive(Clone, PartialEq, ::prost::Oneof)]
244 pub enum State {
245 #[prost(message, tag = "1")]
246 NotStarted(super::ExecutionStepNotStarted),
247 #[prost(message, tag = "2")]
248 InProgress(super::ExecutionStepInProgress),
249 #[prost(message, tag = "3")]
250 Submitted(super::ExecutionStepSubmitted),
251 #[prost(message, tag = "4")]
253 Skipped(super::ExecutionStepSkipped),
254 #[prost(message, tag = "5")]
255 Succeeded(super::ExecutionStepSucceeded),
256 #[prost(message, tag = "6")]
257 Errored(super::ExecutionStepErrored),
258 }
259}
260#[derive(Clone, Copy, PartialEq, ::prost::Message)]
261pub struct StepInProgressRequest {}
262#[derive(Clone, Copy, PartialEq, ::prost::Message)]
263pub struct StepSubmittedRequest {}
264#[derive(Clone, PartialEq, ::prost::Message)]
265pub struct StepSkippedRequest {
266 #[prost(string, optional, tag = "1")]
267 pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
268}
269#[derive(Clone, PartialEq, ::prost::Message)]
270pub struct StepErroredRequest {
271 #[prost(string, optional, tag = "1")]
272 pub error_reason: ::core::option::Option<::prost::alloc::string::String>,
273}
274#[derive(Clone, PartialEq, ::prost::Message)]
276pub struct TargetStepStateRequest {
277 #[prost(oneof = "target_step_state_request::TargetState", tags = "1, 2, 3, 4")]
278 pub target_state: ::core::option::Option<target_step_state_request::TargetState>,
279}
280pub mod target_step_state_request {
282 #[derive(Clone, PartialEq, ::prost::Oneof)]
283 pub enum TargetState {
284 #[prost(message, tag = "1")]
285 InProgress(super::StepInProgressRequest),
286 #[prost(message, tag = "2")]
287 Submitted(super::StepSubmittedRequest),
288 #[prost(message, tag = "3")]
289 Skipped(super::StepSkippedRequest),
290 #[prost(message, tag = "4")]
291 Errored(super::StepErroredRequest),
292 }
293}
294#[derive(Clone, PartialEq, ::prost::Message)]
295pub struct ProcedureAsyncTask {
296 #[prost(oneof = "procedure_async_task::Task", tags = "1")]
297 pub task: ::core::option::Option<procedure_async_task::Task>,
298}
299pub mod procedure_async_task {
301 #[derive(Clone, PartialEq, ::prost::Oneof)]
302 pub enum Task {
303 #[prost(message, tag = "1")]
304 ConditionObservation(super::ConditionObservation),
305 }
306}
307#[derive(Clone, PartialEq, ::prost::Message)]
308pub struct ConditionObservation {
309 #[prost(string, tag = "1")]
310 pub user_rid: ::prost::alloc::string::String,
311 #[prost(string, tag = "2")]
312 pub org_rid: ::prost::alloc::string::String,
313 #[prost(string, tag = "3")]
314 pub procedure_execution_rid: ::prost::alloc::string::String,
315 #[prost(string, tag = "4")]
316 pub step_id: ::prost::alloc::string::String,
317 #[prost(message, optional, tag = "5")]
318 pub success_condition: ::core::option::Option<super::super::v1::SuccessCondition>,
319}
320#[derive(Clone, PartialEq, ::prost::Message)]
323pub struct SuccessConditionStatus {
324 #[prost(oneof = "success_condition_status::Condition", tags = "1, 6, 7")]
326 pub condition: ::core::option::Option<success_condition_status::Condition>,
327 #[prost(oneof = "success_condition_status::Status", tags = "2, 3, 4, 5, 8")]
329 pub status: ::core::option::Option<success_condition_status::Status>,
330}
331pub mod success_condition_status {
333 #[derive(Clone, PartialEq, ::prost::Oneof)]
335 pub enum Condition {
336 #[prost(message, tag = "1")]
337 And(super::AndSuccessCondition),
338 #[prost(message, tag = "6")]
339 Timer(super::super::super::v1::TimerSuccessCondition),
340 #[prost(message, tag = "7")]
343 IngestJob(super::super::super::v1::IngestJobSuccessCondition),
344 }
345 #[derive(Clone, PartialEq, ::prost::Oneof)]
347 pub enum Status {
348 #[prost(message, tag = "2")]
349 InProgress(super::SuccessConditionInProgress),
350 #[prost(message, tag = "3")]
351 Satisfied(super::SuccessConditionSatisfied),
352 #[prost(message, tag = "4")]
353 Failed(super::SuccessConditionFailed),
354 #[prost(message, tag = "5")]
355 Canceled(super::SuccessConditionCanceled),
356 #[prost(message, tag = "8")]
357 Submitted(super::SuccessConditionSubmitted),
358 }
359}
360#[derive(Clone, PartialEq, ::prost::Message)]
361pub struct AndSuccessCondition {
362 #[prost(message, repeated, tag = "1")]
363 pub conditions: ::prost::alloc::vec::Vec<SuccessConditionStatus>,
364}
365#[derive(Clone, Copy, PartialEq, ::prost::Message)]
366pub struct SuccessConditionSubmitted {
367 #[prost(message, optional, tag = "1")]
368 pub submitted_at: ::core::option::Option<
369 super::super::super::super::google::protobuf::Timestamp,
370 >,
371}
372#[derive(Clone, Copy, PartialEq, ::prost::Message)]
373pub struct SuccessConditionInProgress {
374 #[prost(message, optional, tag = "1")]
375 pub started_at: ::core::option::Option<
376 super::super::super::super::google::protobuf::Timestamp,
377 >,
378}
379#[derive(Clone, Copy, PartialEq, ::prost::Message)]
380pub struct SuccessConditionSatisfied {
381 #[prost(message, optional, tag = "1")]
382 pub started_at: ::core::option::Option<
383 super::super::super::super::google::protobuf::Timestamp,
384 >,
385 #[prost(message, optional, tag = "2")]
386 pub satisfied_at: ::core::option::Option<
387 super::super::super::super::google::protobuf::Timestamp,
388 >,
389}
390#[derive(Clone, PartialEq, ::prost::Message)]
391pub struct SuccessConditionFailed {
392 #[prost(message, optional, tag = "1")]
393 pub started_at: ::core::option::Option<
394 super::super::super::super::google::protobuf::Timestamp,
395 >,
396 #[prost(message, optional, tag = "2")]
397 pub failed_at: ::core::option::Option<
398 super::super::super::super::google::protobuf::Timestamp,
399 >,
400 #[prost(string, tag = "3")]
401 pub failure_reason: ::prost::alloc::string::String,
402}
403#[derive(Clone, Copy, PartialEq, ::prost::Message)]
404pub struct SuccessConditionCanceled {
405 #[prost(message, optional, tag = "1")]
406 pub started_at: ::core::option::Option<
407 super::super::super::super::google::protobuf::Timestamp,
408 >,
409 #[prost(message, optional, tag = "2")]
410 pub canceled_at: ::core::option::Option<
411 super::super::super::super::google::protobuf::Timestamp,
412 >,
413}
414#[derive(Clone, PartialEq, ::prost::Message)]
416pub struct CompletionActionStatus {
417 #[prost(message, optional, tag = "1")]
418 pub state: ::core::option::Option<CompletionActionState>,
419 #[prost(oneof = "completion_action_status::Result", tags = "2, 3, 4, 5")]
421 pub result: ::core::option::Option<completion_action_status::Result>,
422}
423pub mod completion_action_status {
425 #[derive(Clone, PartialEq, ::prost::Oneof)]
427 pub enum Result {
428 #[prost(message, tag = "2")]
429 CreateEvent(super::CreateEventResult),
430 #[prost(message, tag = "3")]
431 CreateRun(super::CreateRunResult),
432 #[prost(message, tag = "4")]
433 ApplyWorkbookTemplates(super::ApplyWorkbookTemplatesResult),
434 #[prost(message, tag = "5")]
436 ApplyChecklists(super::ApplyChecklistsResult),
437 }
438}
439#[derive(Clone, PartialEq, ::prost::Message)]
441pub struct CreateEventResult {
442 #[prost(string, tag = "1")]
443 pub event_rid: ::prost::alloc::string::String,
444}
445#[derive(Clone, PartialEq, ::prost::Message)]
447pub struct CreateRunResult {
448 #[prost(string, tag = "1")]
449 pub run_rid: ::prost::alloc::string::String,
450}
451#[derive(Clone, PartialEq, ::prost::Message)]
453pub struct ApplyWorkbookTemplatesResult {
454 #[prost(string, repeated, tag = "1")]
455 pub workbook_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
456}
457#[derive(Clone, PartialEq, ::prost::Message)]
459pub struct ApplyChecklistsResult {
460 #[prost(string, repeated, tag = "1")]
461 pub data_review_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
462}
463#[derive(Clone, PartialEq, ::prost::Message)]
464pub struct CompletionActionState {
465 #[prost(oneof = "completion_action_state::State", tags = "1, 2, 3")]
466 pub state: ::core::option::Option<completion_action_state::State>,
467}
468pub mod completion_action_state {
470 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
471 pub struct NotRun {}
472 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
473 pub struct Succeeded {}
474 #[derive(Clone, PartialEq, ::prost::Oneof)]
475 pub enum State {
476 #[prost(message, tag = "1")]
478 NotRun(NotRun),
479 #[prost(message, tag = "2")]
481 Succeeded(Succeeded),
482 #[prost(string, tag = "3")]
484 Error(::prost::alloc::string::String),
485 }
486}
487#[derive(Clone, PartialEq, ::prost::Message)]
489pub struct StepContentValue {
490 #[prost(oneof = "step_content_value::Value", tags = "1, 2, 3")]
491 pub value: ::core::option::Option<step_content_value::Value>,
492}
493pub mod step_content_value {
495 #[derive(Clone, PartialEq, ::prost::Oneof)]
496 pub enum Value {
497 #[prost(message, tag = "1")]
498 Form(super::FormStepValue),
499 #[prost(message, tag = "2")]
500 StartIngest(super::StartIngestStepValue),
501 #[prost(message, tag = "3")]
503 SelectOrCreateAsset(super::SelectOrCreateAssetStepValue),
504 }
505}
506#[derive(Clone, PartialEq, ::prost::Message)]
507pub struct FormStepValue {
508 #[prost(message, repeated, tag = "1")]
509 pub fields: ::prost::alloc::vec::Vec<FormFieldValue>,
510}
511#[derive(Clone, PartialEq, ::prost::Message)]
512pub struct StartIngestStepValue {
513 #[prost(string, optional, tag = "1")]
516 pub ingest_job_rid: ::core::option::Option<::prost::alloc::string::String>,
517}
518#[derive(Clone, PartialEq, ::prost::Message)]
519pub struct SelectOrCreateAssetStepValue {
520 #[prost(message, optional, tag = "1")]
523 pub asset_reference: ::core::option::Option<super::super::v1::AssetReference>,
524}
525#[derive(Clone, PartialEq, ::prost::Message)]
529pub struct FormFieldValue {
530 #[prost(oneof = "form_field_value::Field", tags = "1, 2, 3, 4, 5, 6, 7")]
531 pub field: ::core::option::Option<form_field_value::Field>,
532}
533pub mod form_field_value {
535 #[derive(Clone, PartialEq, ::prost::Oneof)]
536 pub enum Field {
537 #[prost(message, tag = "1")]
538 Asset(super::AssetFieldValue),
539 #[prost(message, tag = "2")]
540 Checkbox(super::CheckboxFieldValue),
541 #[prost(message, tag = "3")]
542 Text(super::TextFieldValue),
543 #[prost(message, tag = "4")]
544 Int(super::IntFieldValue),
545 #[prost(message, tag = "5")]
546 Double(super::DoubleFieldValue),
547 #[prost(message, tag = "6")]
548 SingleEnum(super::SingleEnumFieldValue),
549 #[prost(message, tag = "7")]
550 MultiEnum(super::MultiEnumFieldValue),
551 }
552}
553#[derive(Clone, PartialEq, ::prost::Message)]
554pub struct AssetFieldValue {
555 #[prost(oneof = "asset_field_value::Asset", tags = "1")]
557 pub asset: ::core::option::Option<asset_field_value::Asset>,
558}
559pub mod asset_field_value {
561 #[derive(Clone, PartialEq, ::prost::Oneof)]
563 pub enum Asset {
564 #[prost(message, tag = "1")]
565 AssetReference(super::super::super::v1::AssetReference),
566 }
567}
568#[derive(Clone, Copy, PartialEq, ::prost::Message)]
569pub struct CheckboxFieldValue {
570 #[prost(bool, tag = "1")]
572 pub value: bool,
573}
574#[derive(Clone, PartialEq, ::prost::Message)]
575pub struct TextFieldValue {
576 #[prost(string, optional, tag = "1")]
578 pub value: ::core::option::Option<::prost::alloc::string::String>,
579}
580#[derive(Clone, Copy, PartialEq, ::prost::Message)]
581pub struct IntFieldValue {
582 #[prost(int64, optional, tag = "1")]
583 pub value: ::core::option::Option<i64>,
584}
585#[derive(Clone, Copy, PartialEq, ::prost::Message)]
586pub struct DoubleFieldValue {
587 #[prost(double, optional, tag = "1")]
588 pub value: ::core::option::Option<f64>,
589}
590#[derive(Clone, PartialEq, ::prost::Message)]
591pub struct SingleEnumFieldValue {
592 #[prost(string, optional, tag = "1")]
594 pub value: ::core::option::Option<::prost::alloc::string::String>,
595}
596#[derive(Clone, PartialEq, ::prost::Message)]
597pub struct MultiEnumFieldValue {
598 #[prost(string, repeated, tag = "1")]
600 pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
601}
602#[derive(Clone, PartialEq, ::prost::Message)]
603pub struct ProcedureExecution {
604 #[prost(string, tag = "1")]
605 pub rid: ::prost::alloc::string::String,
606 #[prost(message, optional, tag = "2")]
607 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
608 #[prost(message, optional, tag = "3")]
609 pub state: ::core::option::Option<ProcedureExecutionState>,
610}
611#[derive(Clone, PartialEq, ::prost::Message)]
612pub struct ProcedureExecutionMetadata {
613 #[prost(string, tag = "1")]
614 pub rid: ::prost::alloc::string::String,
615 #[prost(string, tag = "2")]
617 pub procedure_rid: ::prost::alloc::string::String,
618 #[prost(string, tag = "3")]
621 pub procedure_commit_id: ::prost::alloc::string::String,
622 #[prost(string, tag = "4")]
623 pub title: ::prost::alloc::string::String,
624 #[prost(string, optional, tag = "5")]
625 pub description: ::core::option::Option<::prost::alloc::string::String>,
626 #[prost(string, repeated, tag = "6")]
627 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
628 #[prost(map = "string, string", tag = "7")]
629 pub properties: ::std::collections::HashMap<
630 ::prost::alloc::string::String,
631 ::prost::alloc::string::String,
632 >,
633 #[prost(string, tag = "8")]
634 pub created_by: ::prost::alloc::string::String,
635 #[prost(message, optional, tag = "9")]
636 pub created_at: ::core::option::Option<
637 super::super::super::super::google::protobuf::Timestamp,
638 >,
639 #[prost(string, tag = "10")]
640 pub updated_by: ::prost::alloc::string::String,
641 #[prost(message, optional, tag = "11")]
642 pub updated_at: ::core::option::Option<
643 super::super::super::super::google::protobuf::Timestamp,
644 >,
645 #[prost(message, optional, tag = "12")]
647 pub started_at: ::core::option::Option<
648 super::super::super::super::google::protobuf::Timestamp,
649 >,
650 #[prost(string, optional, tag = "13")]
651 pub started_by: ::core::option::Option<::prost::alloc::string::String>,
652 #[prost(message, optional, tag = "14")]
654 pub finished_at: ::core::option::Option<
655 super::super::super::super::google::protobuf::Timestamp,
656 >,
657 #[prost(string, optional, tag = "15")]
658 pub finished_by: ::core::option::Option<::prost::alloc::string::String>,
659 #[prost(message, optional, tag = "16")]
661 pub aborted_at: ::core::option::Option<
662 super::super::super::super::google::protobuf::Timestamp,
663 >,
664 #[prost(string, optional, tag = "17")]
665 pub aborted_by: ::core::option::Option<::prost::alloc::string::String>,
666 #[prost(message, optional, tag = "18")]
668 pub failed_at: ::core::option::Option<
669 super::super::super::super::google::protobuf::Timestamp,
670 >,
671 #[prost(string, optional, tag = "19")]
672 pub failed_by: ::core::option::Option<::prost::alloc::string::String>,
673 #[prost(string, optional, tag = "20")]
674 pub failed_reason: ::core::option::Option<::prost::alloc::string::String>,
675}
676#[derive(Clone, PartialEq, ::prost::Message)]
678pub struct ProcedureExecutionState {
679 #[prost(map = "string, message", tag = "1")]
681 pub global_fields: ::std::collections::HashMap<
682 ::prost::alloc::string::String,
683 FieldOutput,
684 >,
685 #[prost(map = "string, message", tag = "2")]
687 pub nodes: ::std::collections::HashMap<
688 ::prost::alloc::string::String,
689 ProcedureExecutionNode,
690 >,
691 #[prost(map = "string, message", tag = "3")]
695 pub section_edges: ::std::collections::HashMap<
696 ::prost::alloc::string::String,
697 super::super::v1::NodeList,
698 >,
699 #[prost(map = "string, message", tag = "4")]
703 pub step_edges: ::std::collections::HashMap<
704 ::prost::alloc::string::String,
705 super::super::v1::NodeList,
706 >,
707}
708#[derive(Clone, PartialEq, ::prost::Message)]
709pub struct Strings {
710 #[prost(string, repeated, tag = "1")]
711 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
712}
713#[derive(Clone, PartialEq, ::prost::Message)]
718pub struct FieldOutput {
719 #[prost(oneof = "field_output::Output", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
721 pub output: ::core::option::Option<field_output::Output>,
722}
723pub mod field_output {
725 #[derive(Clone, PartialEq, ::prost::Oneof)]
727 pub enum Output {
728 #[prost(string, tag = "1")]
732 AssetRid(::prost::alloc::string::String),
733 #[prost(string, tag = "2")]
734 StringValue(::prost::alloc::string::String),
735 #[prost(double, tag = "3")]
736 DoubleValue(f64),
737 #[prost(bool, tag = "4")]
738 BooleanValue(bool),
739 #[prost(int64, tag = "5")]
740 IntValue(i64),
741 #[prost(message, tag = "6")]
742 StringsValue(super::Strings),
743 #[prost(string, tag = "7")]
744 IngestJobRid(::prost::alloc::string::String),
745 #[prost(string, tag = "8")]
746 RunRid(::prost::alloc::string::String),
747 }
748}
749#[derive(Clone, PartialEq, ::prost::Message)]
750pub struct CreateProcedureExecutionRequest {
751 #[prost(string, tag = "1")]
752 pub procedure_rid: ::prost::alloc::string::String,
753 #[prost(string, tag = "2")]
754 pub procedure_commit_id: ::prost::alloc::string::String,
755 #[prost(string, tag = "3")]
756 pub title: ::prost::alloc::string::String,
757 #[prost(string, optional, tag = "4")]
758 pub description: ::core::option::Option<::prost::alloc::string::String>,
759}
760#[derive(Clone, PartialEq, ::prost::Message)]
761pub struct CreateProcedureExecutionResponse {
762 #[prost(message, optional, tag = "1")]
763 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
764}
765#[derive(Clone, PartialEq, ::prost::Message)]
766pub struct GetProcedureExecutionRequest {
767 #[prost(string, tag = "1")]
768 pub procedure_execution_rid: ::prost::alloc::string::String,
769 #[prost(bool, tag = "2")]
772 pub include_display_graph: bool,
773}
774#[derive(Clone, PartialEq, ::prost::Message)]
775pub struct GetProcedureExecutionResponse {
776 #[prost(message, optional, tag = "1")]
777 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
778 #[prost(message, optional, tag = "2")]
781 pub display_graph: ::core::option::Option<super::super::v1::ProcedureDisplayGraph>,
782}
783#[derive(Clone, PartialEq, ::prost::Message)]
784pub struct UpdateProcedureExecutionMetadataRequest {
785 #[prost(string, tag = "1")]
786 pub procedure_execution_rid: ::prost::alloc::string::String,
787 #[prost(string, optional, tag = "2")]
788 pub title: ::core::option::Option<::prost::alloc::string::String>,
789 #[prost(string, optional, tag = "3")]
790 pub description: ::core::option::Option<::prost::alloc::string::String>,
791 #[prost(string, optional, tag = "4")]
792 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
793 #[prost(message, optional, tag = "5")]
794 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
795 #[prost(message, optional, tag = "6")]
796 pub properties: ::core::option::Option<
797 super::super::super::types::PropertyUpdateWrapper,
798 >,
799}
800#[derive(Clone, PartialEq, ::prost::Message)]
801pub struct UpdateProcedureExecutionMetadataResponse {
802 #[prost(message, optional, tag = "1")]
803 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
804}
805#[derive(Clone, PartialEq, ::prost::Message)]
812pub struct UpdateProcedureExecutionRequest {
813 #[prost(string, tag = "1")]
814 pub procedure_execution_rid: ::prost::alloc::string::String,
815 #[prost(string, optional, tag = "2")]
816 pub title: ::core::option::Option<::prost::alloc::string::String>,
817 #[prost(string, optional, tag = "3")]
818 pub description: ::core::option::Option<::prost::alloc::string::String>,
819 #[prost(string, optional, tag = "4")]
820 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
821 #[prost(message, optional, tag = "5")]
822 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
823 #[prost(message, optional, tag = "6")]
824 pub properties: ::core::option::Option<
825 super::super::super::types::PropertyUpdateWrapper,
826 >,
827 #[prost(message, optional, tag = "7")]
828 pub state: ::core::option::Option<ProcedureExecutionState>,
829 #[prost(bool, optional, tag = "8")]
830 pub is_aborted: ::core::option::Option<bool>,
831 #[prost(message, optional, tag = "9")]
832 pub started_at: ::core::option::Option<
833 super::super::super::super::google::protobuf::Timestamp,
834 >,
835 #[prost(message, optional, tag = "10")]
836 pub finished_at: ::core::option::Option<
837 super::super::super::super::google::protobuf::Timestamp,
838 >,
839}
840#[derive(Clone, PartialEq, ::prost::Message)]
841pub struct UpdateProcedureExecutionResponse {
842 #[prost(message, optional, tag = "1")]
843 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
844}
845#[derive(Clone, PartialEq, ::prost::Message)]
846pub struct UpdateStepRequest {
847 #[prost(string, tag = "1")]
848 pub procedure_execution_rid: ::prost::alloc::string::String,
849 #[prost(string, tag = "2")]
851 pub step_id: ::prost::alloc::string::String,
852 #[prost(message, optional, tag = "3")]
855 pub value: ::core::option::Option<StepContentValue>,
856 #[prost(message, optional, tag = "4")]
859 pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
860 #[prost(message, optional, tag = "5")]
862 pub target_state: ::core::option::Option<TargetStepStateRequest>,
863}
864#[derive(Clone, PartialEq, ::prost::Message)]
865pub struct UpdateStepResponse {
866 #[prost(message, optional, tag = "1")]
867 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
868}
869#[derive(Clone, PartialEq, ::prost::Message)]
870pub struct UpdateStepSuccessConditionStatusRequest {
871 #[prost(string, tag = "1")]
872 pub procedure_execution_rid: ::prost::alloc::string::String,
873 #[prost(string, tag = "2")]
875 pub step_id: ::prost::alloc::string::String,
876 #[prost(message, optional, tag = "3")]
881 pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
882}
883#[derive(Clone, PartialEq, ::prost::Message)]
884pub struct UpdateStepSuccessConditionStatusResponse {
885 #[prost(message, optional, tag = "1")]
886 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
887}
888#[derive(Clone, PartialEq, ::prost::Message)]
889pub struct ProcedureExecutionSearchQuery {
890 #[prost(
891 oneof = "procedure_execution_search_query::Query",
892 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9"
893 )]
894 pub query: ::core::option::Option<procedure_execution_search_query::Query>,
895}
896pub mod procedure_execution_search_query {
898 #[derive(Clone, PartialEq, ::prost::Message)]
899 pub struct ProcedureExecutionSearchAndQuery {
900 #[prost(message, repeated, tag = "1")]
901 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
902 }
903 #[derive(Clone, PartialEq, ::prost::Message)]
904 pub struct ProcedureExecutionSearchOrQuery {
905 #[prost(message, repeated, tag = "1")]
906 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
907 }
908 #[derive(Clone, PartialEq, ::prost::Oneof)]
909 pub enum Query {
910 #[prost(string, tag = "1")]
911 SearchText(::prost::alloc::string::String),
912 #[prost(string, tag = "2")]
913 Label(::prost::alloc::string::String),
914 #[prost(message, tag = "3")]
915 Property(super::super::super::super::types::Property),
916 #[prost(message, tag = "4")]
917 And(ProcedureExecutionSearchAndQuery),
918 #[prost(message, tag = "5")]
919 Or(ProcedureExecutionSearchOrQuery),
920 #[prost(string, tag = "6")]
921 Workspace(::prost::alloc::string::String),
922 #[prost(string, tag = "7")]
923 ProcedureRid(::prost::alloc::string::String),
924 #[prost(string, tag = "8")]
925 CommitId(::prost::alloc::string::String),
926 #[prost(string, tag = "9")]
927 CreatedBy(::prost::alloc::string::String),
928 }
929}
930#[derive(Clone, Copy, PartialEq, ::prost::Message)]
931pub struct ProcedureExecutionSortOptions {
932 #[prost(bool, tag = "1")]
933 pub is_descending: bool,
934 #[prost(enumeration = "SearchProcedureExecutionsSortField", tag = "2")]
935 pub sort_field: i32,
936}
937#[derive(Clone, PartialEq, ::prost::Message)]
938pub struct SearchProcedureExecutionsRequest {
939 #[prost(message, optional, tag = "1")]
940 pub query: ::core::option::Option<ProcedureExecutionSearchQuery>,
941 #[prost(message, optional, tag = "2")]
942 pub sort_options: ::core::option::Option<ProcedureExecutionSortOptions>,
943 #[prost(int32, optional, tag = "3")]
945 pub page_size: ::core::option::Option<i32>,
946 #[prost(string, optional, tag = "4")]
947 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
948}
949#[derive(Clone, PartialEq, ::prost::Message)]
950pub struct SearchProcedureExecutionsResponse {
951 #[prost(message, repeated, tag = "1")]
952 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
953 #[prost(string, optional, tag = "2")]
954 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
955}
956#[derive(Clone, PartialEq, ::prost::Message)]
957pub struct BatchGetProcedureExecutionMetadataRequest {
958 #[prost(string, repeated, tag = "1")]
959 pub procedure_execution_rids: ::prost::alloc::vec::Vec<
960 ::prost::alloc::string::String,
961 >,
962}
963#[derive(Clone, PartialEq, ::prost::Message)]
964pub struct BatchGetProcedureExecutionMetadataResponse {
965 #[prost(message, repeated, tag = "1")]
966 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
967}
968#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
969#[repr(i32)]
970pub enum SearchProcedureExecutionsSortField {
971 Unspecified = 0,
972 CreatedAt = 1,
973 StartedAt = 2,
974 FinishedAt = 3,
975 UpdatedAt = 4,
976}
977impl SearchProcedureExecutionsSortField {
978 pub fn as_str_name(&self) -> &'static str {
983 match self {
984 Self::Unspecified => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED",
985 Self::CreatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT",
986 Self::StartedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT",
987 Self::FinishedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT",
988 Self::UpdatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT",
989 }
990 }
991 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
993 match value {
994 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED" => {
995 Some(Self::Unspecified)
996 }
997 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
998 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT" => Some(Self::StartedAt),
999 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT" => {
1000 Some(Self::FinishedAt)
1001 }
1002 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1003 _ => None,
1004 }
1005 }
1006}
1007#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1008#[repr(i32)]
1009pub enum ProcedureExecutionsServiceError {
1010 Unspecified = 0,
1011 NotFound = 1,
1012 ProcNotFound = 2,
1013 NodeNotFound = 3,
1014 InvalidNode = 4,
1015 InvalidGraph = 5,
1016 InvalidStepTransition = 6,
1017 InvalidSearchToken = 7,
1018 InvalidStepUpdate = 8,
1019}
1020impl ProcedureExecutionsServiceError {
1021 pub fn as_str_name(&self) -> &'static str {
1026 match self {
1027 Self::Unspecified => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED",
1028 Self::NotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND",
1029 Self::ProcNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND",
1030 Self::NodeNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND",
1031 Self::InvalidNode => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE",
1032 Self::InvalidGraph => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH",
1033 Self::InvalidStepTransition => {
1034 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION"
1035 }
1036 Self::InvalidSearchToken => {
1037 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN"
1038 }
1039 Self::InvalidStepUpdate => {
1040 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE"
1041 }
1042 }
1043 }
1044 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1046 match value {
1047 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
1048 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
1049 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND" => {
1050 Some(Self::ProcNotFound)
1051 }
1052 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND" => {
1053 Some(Self::NodeNotFound)
1054 }
1055 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE" => Some(Self::InvalidNode),
1056 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH" => {
1057 Some(Self::InvalidGraph)
1058 }
1059 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION" => {
1060 Some(Self::InvalidStepTransition)
1061 }
1062 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
1063 Some(Self::InvalidSearchToken)
1064 }
1065 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE" => {
1066 Some(Self::InvalidStepUpdate)
1067 }
1068 _ => None,
1069 }
1070 }
1071}
1072pub mod procedure_executions_service_client {
1074 #![allow(
1075 unused_variables,
1076 dead_code,
1077 missing_docs,
1078 clippy::wildcard_imports,
1079 clippy::let_unit_value,
1080 )]
1081 use tonic::codegen::*;
1082 use tonic::codegen::http::Uri;
1083 #[derive(Debug, Clone)]
1085 pub struct ProcedureExecutionsServiceClient<T> {
1086 inner: tonic::client::Grpc<T>,
1087 }
1088 impl ProcedureExecutionsServiceClient<tonic::transport::Channel> {
1089 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
1091 where
1092 D: TryInto<tonic::transport::Endpoint>,
1093 D::Error: Into<StdError>,
1094 {
1095 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
1096 Ok(Self::new(conn))
1097 }
1098 }
1099 impl<T> ProcedureExecutionsServiceClient<T>
1100 where
1101 T: tonic::client::GrpcService<tonic::body::Body>,
1102 T::Error: Into<StdError>,
1103 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
1104 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
1105 {
1106 pub fn new(inner: T) -> Self {
1107 let inner = tonic::client::Grpc::new(inner);
1108 Self { inner }
1109 }
1110 pub fn with_origin(inner: T, origin: Uri) -> Self {
1111 let inner = tonic::client::Grpc::with_origin(inner, origin);
1112 Self { inner }
1113 }
1114 pub fn with_interceptor<F>(
1115 inner: T,
1116 interceptor: F,
1117 ) -> ProcedureExecutionsServiceClient<InterceptedService<T, F>>
1118 where
1119 F: tonic::service::Interceptor,
1120 T::ResponseBody: Default,
1121 T: tonic::codegen::Service<
1122 http::Request<tonic::body::Body>,
1123 Response = http::Response<
1124 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
1125 >,
1126 >,
1127 <T as tonic::codegen::Service<
1128 http::Request<tonic::body::Body>,
1129 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
1130 {
1131 ProcedureExecutionsServiceClient::new(
1132 InterceptedService::new(inner, interceptor),
1133 )
1134 }
1135 #[must_use]
1140 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
1141 self.inner = self.inner.send_compressed(encoding);
1142 self
1143 }
1144 #[must_use]
1146 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
1147 self.inner = self.inner.accept_compressed(encoding);
1148 self
1149 }
1150 #[must_use]
1154 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
1155 self.inner = self.inner.max_decoding_message_size(limit);
1156 self
1157 }
1158 #[must_use]
1162 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
1163 self.inner = self.inner.max_encoding_message_size(limit);
1164 self
1165 }
1166 pub async fn create_procedure_execution(
1168 &mut self,
1169 request: impl tonic::IntoRequest<super::CreateProcedureExecutionRequest>,
1170 ) -> std::result::Result<
1171 tonic::Response<super::CreateProcedureExecutionResponse>,
1172 tonic::Status,
1173 > {
1174 self.inner
1175 .ready()
1176 .await
1177 .map_err(|e| {
1178 tonic::Status::unknown(
1179 format!("Service was not ready: {}", e.into()),
1180 )
1181 })?;
1182 let codec = tonic::codec::ProstCodec::default();
1183 let path = http::uri::PathAndQuery::from_static(
1184 "/nominal.procedures.executions.v1.ProcedureExecutionsService/CreateProcedureExecution",
1185 );
1186 let mut req = request.into_request();
1187 req.extensions_mut()
1188 .insert(
1189 GrpcMethod::new(
1190 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1191 "CreateProcedureExecution",
1192 ),
1193 );
1194 self.inner.unary(req, path, codec).await
1195 }
1196 pub async fn get_procedure_execution(
1198 &mut self,
1199 request: impl tonic::IntoRequest<super::GetProcedureExecutionRequest>,
1200 ) -> std::result::Result<
1201 tonic::Response<super::GetProcedureExecutionResponse>,
1202 tonic::Status,
1203 > {
1204 self.inner
1205 .ready()
1206 .await
1207 .map_err(|e| {
1208 tonic::Status::unknown(
1209 format!("Service was not ready: {}", e.into()),
1210 )
1211 })?;
1212 let codec = tonic::codec::ProstCodec::default();
1213 let path = http::uri::PathAndQuery::from_static(
1214 "/nominal.procedures.executions.v1.ProcedureExecutionsService/GetProcedureExecution",
1215 );
1216 let mut req = request.into_request();
1217 req.extensions_mut()
1218 .insert(
1219 GrpcMethod::new(
1220 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1221 "GetProcedureExecution",
1222 ),
1223 );
1224 self.inner.unary(req, path, codec).await
1225 }
1226 pub async fn update_procedure_execution_metadata(
1228 &mut self,
1229 request: impl tonic::IntoRequest<
1230 super::UpdateProcedureExecutionMetadataRequest,
1231 >,
1232 ) -> std::result::Result<
1233 tonic::Response<super::UpdateProcedureExecutionMetadataResponse>,
1234 tonic::Status,
1235 > {
1236 self.inner
1237 .ready()
1238 .await
1239 .map_err(|e| {
1240 tonic::Status::unknown(
1241 format!("Service was not ready: {}", e.into()),
1242 )
1243 })?;
1244 let codec = tonic::codec::ProstCodec::default();
1245 let path = http::uri::PathAndQuery::from_static(
1246 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecutionMetadata",
1247 );
1248 let mut req = request.into_request();
1249 req.extensions_mut()
1250 .insert(
1251 GrpcMethod::new(
1252 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1253 "UpdateProcedureExecutionMetadata",
1254 ),
1255 );
1256 self.inner.unary(req, path, codec).await
1257 }
1258 pub async fn update_procedure_execution(
1262 &mut self,
1263 request: impl tonic::IntoRequest<super::UpdateProcedureExecutionRequest>,
1264 ) -> std::result::Result<
1265 tonic::Response<super::UpdateProcedureExecutionResponse>,
1266 tonic::Status,
1267 > {
1268 self.inner
1269 .ready()
1270 .await
1271 .map_err(|e| {
1272 tonic::Status::unknown(
1273 format!("Service was not ready: {}", e.into()),
1274 )
1275 })?;
1276 let codec = tonic::codec::ProstCodec::default();
1277 let path = http::uri::PathAndQuery::from_static(
1278 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecution",
1279 );
1280 let mut req = request.into_request();
1281 req.extensions_mut()
1282 .insert(
1283 GrpcMethod::new(
1284 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1285 "UpdateProcedureExecution",
1286 ),
1287 );
1288 self.inner.unary(req, path, codec).await
1289 }
1290 pub async fn update_step(
1293 &mut self,
1294 request: impl tonic::IntoRequest<super::UpdateStepRequest>,
1295 ) -> std::result::Result<
1296 tonic::Response<super::UpdateStepResponse>,
1297 tonic::Status,
1298 > {
1299 self.inner
1300 .ready()
1301 .await
1302 .map_err(|e| {
1303 tonic::Status::unknown(
1304 format!("Service was not ready: {}", e.into()),
1305 )
1306 })?;
1307 let codec = tonic::codec::ProstCodec::default();
1308 let path = http::uri::PathAndQuery::from_static(
1309 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStep",
1310 );
1311 let mut req = request.into_request();
1312 req.extensions_mut()
1313 .insert(
1314 GrpcMethod::new(
1315 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1316 "UpdateStep",
1317 ),
1318 );
1319 self.inner.unary(req, path, codec).await
1320 }
1321 pub async fn update_step_success_condition_status(
1324 &mut self,
1325 request: impl tonic::IntoRequest<
1326 super::UpdateStepSuccessConditionStatusRequest,
1327 >,
1328 ) -> std::result::Result<
1329 tonic::Response<super::UpdateStepSuccessConditionStatusResponse>,
1330 tonic::Status,
1331 > {
1332 self.inner
1333 .ready()
1334 .await
1335 .map_err(|e| {
1336 tonic::Status::unknown(
1337 format!("Service was not ready: {}", e.into()),
1338 )
1339 })?;
1340 let codec = tonic::codec::ProstCodec::default();
1341 let path = http::uri::PathAndQuery::from_static(
1342 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepSuccessConditionStatus",
1343 );
1344 let mut req = request.into_request();
1345 req.extensions_mut()
1346 .insert(
1347 GrpcMethod::new(
1348 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1349 "UpdateStepSuccessConditionStatus",
1350 ),
1351 );
1352 self.inner.unary(req, path, codec).await
1353 }
1354 pub async fn search_procedure_executions(
1356 &mut self,
1357 request: impl tonic::IntoRequest<super::SearchProcedureExecutionsRequest>,
1358 ) -> std::result::Result<
1359 tonic::Response<super::SearchProcedureExecutionsResponse>,
1360 tonic::Status,
1361 > {
1362 self.inner
1363 .ready()
1364 .await
1365 .map_err(|e| {
1366 tonic::Status::unknown(
1367 format!("Service was not ready: {}", e.into()),
1368 )
1369 })?;
1370 let codec = tonic::codec::ProstCodec::default();
1371 let path = http::uri::PathAndQuery::from_static(
1372 "/nominal.procedures.executions.v1.ProcedureExecutionsService/SearchProcedureExecutions",
1373 );
1374 let mut req = request.into_request();
1375 req.extensions_mut()
1376 .insert(
1377 GrpcMethod::new(
1378 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1379 "SearchProcedureExecutions",
1380 ),
1381 );
1382 self.inner.unary(req, path, codec).await
1383 }
1384 pub async fn batch_get_procedure_execution_metadata(
1386 &mut self,
1387 request: impl tonic::IntoRequest<
1388 super::BatchGetProcedureExecutionMetadataRequest,
1389 >,
1390 ) -> std::result::Result<
1391 tonic::Response<super::BatchGetProcedureExecutionMetadataResponse>,
1392 tonic::Status,
1393 > {
1394 self.inner
1395 .ready()
1396 .await
1397 .map_err(|e| {
1398 tonic::Status::unknown(
1399 format!("Service was not ready: {}", e.into()),
1400 )
1401 })?;
1402 let codec = tonic::codec::ProstCodec::default();
1403 let path = http::uri::PathAndQuery::from_static(
1404 "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchGetProcedureExecutionMetadata",
1405 );
1406 let mut req = request.into_request();
1407 req.extensions_mut()
1408 .insert(
1409 GrpcMethod::new(
1410 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1411 "BatchGetProcedureExecutionMetadata",
1412 ),
1413 );
1414 self.inner.unary(req, path, codec).await
1415 }
1416 }
1417}