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, 8, 9")]
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 #[prost(message, tag = "8")]
552 FileUpload(super::FileUploadFieldValue),
553 #[prost(message, tag = "9")]
554 MultiFileUpload(super::MultiFileUploadFieldValue),
555 }
556}
557#[derive(Clone, PartialEq, ::prost::Message)]
558pub struct AssetFieldValue {
559 #[prost(oneof = "asset_field_value::Asset", tags = "1")]
561 pub asset: ::core::option::Option<asset_field_value::Asset>,
562}
563pub mod asset_field_value {
565 #[derive(Clone, PartialEq, ::prost::Oneof)]
567 pub enum Asset {
568 #[prost(message, tag = "1")]
569 AssetReference(super::super::super::v1::AssetReference),
570 }
571}
572#[derive(Clone, Copy, PartialEq, ::prost::Message)]
573pub struct CheckboxFieldValue {
574 #[prost(bool, tag = "1")]
576 pub value: bool,
577}
578#[derive(Clone, PartialEq, ::prost::Message)]
579pub struct TextFieldValue {
580 #[prost(string, optional, tag = "1")]
582 pub value: ::core::option::Option<::prost::alloc::string::String>,
583}
584#[derive(Clone, Copy, PartialEq, ::prost::Message)]
585pub struct IntFieldValue {
586 #[prost(int64, optional, tag = "1")]
587 pub value: ::core::option::Option<i64>,
588}
589#[derive(Clone, Copy, PartialEq, ::prost::Message)]
590pub struct DoubleFieldValue {
591 #[prost(double, optional, tag = "1")]
592 pub value: ::core::option::Option<f64>,
593}
594#[derive(Clone, PartialEq, ::prost::Message)]
595pub struct SingleEnumFieldValue {
596 #[prost(string, optional, tag = "1")]
598 pub value: ::core::option::Option<::prost::alloc::string::String>,
599}
600#[derive(Clone, PartialEq, ::prost::Message)]
601pub struct MultiEnumFieldValue {
602 #[prost(string, repeated, tag = "1")]
604 pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
605}
606#[derive(Clone, PartialEq, ::prost::Message)]
608pub struct FileUploadFieldValue {
609 #[prost(oneof = "file_upload_field_value::UploadType", tags = "1")]
610 pub upload_type: ::core::option::Option<file_upload_field_value::UploadType>,
611}
612pub mod file_upload_field_value {
614 #[derive(Clone, PartialEq, ::prost::Oneof)]
615 pub enum UploadType {
616 #[prost(message, tag = "1")]
617 S3Upload(super::S3UploadFileValue),
618 }
619}
620#[derive(Clone, PartialEq, ::prost::Message)]
621pub struct S3UploadFileValue {
622 #[prost(string, tag = "1")]
624 pub s3_path: ::prost::alloc::string::String,
625 #[prost(string, tag = "2")]
627 pub file_name: ::prost::alloc::string::String,
628 #[prost(string, tag = "3")]
630 pub file_type: ::prost::alloc::string::String,
631}
632#[derive(Clone, PartialEq, ::prost::Message)]
633pub struct MultiFileUploadFieldValue {
634 #[prost(message, repeated, tag = "1")]
636 pub uploads: ::prost::alloc::vec::Vec<FileUploadFieldValue>,
637}
638#[derive(Clone, PartialEq, ::prost::Message)]
639pub struct ProcedureExecution {
640 #[prost(string, tag = "1")]
641 pub rid: ::prost::alloc::string::String,
642 #[prost(message, optional, tag = "2")]
643 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
644 #[prost(message, optional, tag = "3")]
645 pub state: ::core::option::Option<ProcedureExecutionState>,
646}
647#[derive(Clone, PartialEq, ::prost::Message)]
648pub struct ProcedureExecutionMetadata {
649 #[prost(string, tag = "1")]
650 pub rid: ::prost::alloc::string::String,
651 #[prost(string, tag = "2")]
653 pub procedure_rid: ::prost::alloc::string::String,
654 #[prost(string, tag = "3")]
657 pub procedure_commit_id: ::prost::alloc::string::String,
658 #[prost(string, tag = "4")]
659 pub title: ::prost::alloc::string::String,
660 #[prost(string, optional, tag = "5")]
661 pub description: ::core::option::Option<::prost::alloc::string::String>,
662 #[prost(string, repeated, tag = "6")]
663 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
664 #[prost(map = "string, string", tag = "7")]
665 pub properties: ::std::collections::HashMap<
666 ::prost::alloc::string::String,
667 ::prost::alloc::string::String,
668 >,
669 #[prost(string, tag = "8")]
670 pub created_by: ::prost::alloc::string::String,
671 #[prost(message, optional, tag = "9")]
672 pub created_at: ::core::option::Option<
673 super::super::super::super::google::protobuf::Timestamp,
674 >,
675 #[prost(string, tag = "10")]
676 pub updated_by: ::prost::alloc::string::String,
677 #[prost(message, optional, tag = "11")]
678 pub updated_at: ::core::option::Option<
679 super::super::super::super::google::protobuf::Timestamp,
680 >,
681 #[prost(message, optional, tag = "12")]
683 pub started_at: ::core::option::Option<
684 super::super::super::super::google::protobuf::Timestamp,
685 >,
686 #[prost(string, optional, tag = "13")]
687 pub started_by: ::core::option::Option<::prost::alloc::string::String>,
688 #[prost(message, optional, tag = "14")]
690 pub finished_at: ::core::option::Option<
691 super::super::super::super::google::protobuf::Timestamp,
692 >,
693 #[prost(string, optional, tag = "15")]
694 pub finished_by: ::core::option::Option<::prost::alloc::string::String>,
695 #[prost(message, optional, tag = "16")]
697 pub aborted_at: ::core::option::Option<
698 super::super::super::super::google::protobuf::Timestamp,
699 >,
700 #[prost(string, optional, tag = "17")]
701 pub aborted_by: ::core::option::Option<::prost::alloc::string::String>,
702 #[prost(message, optional, tag = "18")]
704 pub failed_at: ::core::option::Option<
705 super::super::super::super::google::protobuf::Timestamp,
706 >,
707 #[prost(string, optional, tag = "19")]
708 pub failed_by: ::core::option::Option<::prost::alloc::string::String>,
709 #[prost(string, optional, tag = "20")]
710 pub failed_reason: ::core::option::Option<::prost::alloc::string::String>,
711}
712#[derive(Clone, PartialEq, ::prost::Message)]
714pub struct ProcedureExecutionState {
715 #[prost(map = "string, message", tag = "1")]
717 pub global_fields: ::std::collections::HashMap<
718 ::prost::alloc::string::String,
719 FieldOutput,
720 >,
721 #[prost(map = "string, message", tag = "2")]
723 pub nodes: ::std::collections::HashMap<
724 ::prost::alloc::string::String,
725 ProcedureExecutionNode,
726 >,
727 #[prost(map = "string, message", tag = "3")]
731 pub section_edges: ::std::collections::HashMap<
732 ::prost::alloc::string::String,
733 super::super::v1::NodeList,
734 >,
735 #[prost(map = "string, message", tag = "4")]
739 pub step_edges: ::std::collections::HashMap<
740 ::prost::alloc::string::String,
741 super::super::v1::NodeList,
742 >,
743}
744#[derive(Clone, PartialEq, ::prost::Message)]
745pub struct Strings {
746 #[prost(string, repeated, tag = "1")]
747 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
748}
749#[derive(Clone, PartialEq, ::prost::Message)]
754pub struct FieldOutput {
755 #[prost(oneof = "field_output::Output", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10")]
757 pub output: ::core::option::Option<field_output::Output>,
758}
759pub mod field_output {
761 #[derive(Clone, PartialEq, ::prost::Oneof)]
763 pub enum Output {
764 #[prost(string, tag = "1")]
768 AssetRid(::prost::alloc::string::String),
769 #[prost(string, tag = "2")]
770 StringValue(::prost::alloc::string::String),
771 #[prost(double, tag = "3")]
772 DoubleValue(f64),
773 #[prost(bool, tag = "4")]
774 BooleanValue(bool),
775 #[prost(int64, tag = "5")]
776 IntValue(i64),
777 #[prost(message, tag = "6")]
778 StringsValue(super::Strings),
779 #[prost(string, tag = "7")]
780 IngestJobRid(::prost::alloc::string::String),
781 #[prost(string, tag = "8")]
782 RunRid(::prost::alloc::string::String),
783 #[prost(message, tag = "9")]
784 FileUploadValue(super::FileUploadFieldValue),
785 #[prost(message, tag = "10")]
786 MultiFileUploadValue(super::MultiFileUploadFieldValue),
787 }
788}
789#[derive(Clone, PartialEq, ::prost::Message)]
790pub struct CreateProcedureExecutionRequest {
791 #[prost(string, tag = "1")]
792 pub procedure_rid: ::prost::alloc::string::String,
793 #[prost(string, tag = "2")]
794 pub procedure_commit_id: ::prost::alloc::string::String,
795 #[prost(string, tag = "3")]
796 pub title: ::prost::alloc::string::String,
797 #[prost(string, optional, tag = "4")]
798 pub description: ::core::option::Option<::prost::alloc::string::String>,
799}
800#[derive(Clone, PartialEq, ::prost::Message)]
801pub struct CreateProcedureExecutionResponse {
802 #[prost(message, optional, tag = "1")]
803 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
804}
805#[derive(Clone, PartialEq, ::prost::Message)]
806pub struct GetProcedureExecutionRequest {
807 #[prost(string, tag = "1")]
808 pub procedure_execution_rid: ::prost::alloc::string::String,
809 #[prost(bool, tag = "2")]
812 pub include_display_graph: bool,
813}
814#[derive(Clone, PartialEq, ::prost::Message)]
815pub struct GetProcedureExecutionResponse {
816 #[prost(message, optional, tag = "1")]
817 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
818 #[prost(message, optional, tag = "2")]
821 pub display_graph: ::core::option::Option<super::super::v1::ProcedureDisplayGraph>,
822}
823#[derive(Clone, PartialEq, ::prost::Message)]
824pub struct UpdateProcedureExecutionMetadataRequest {
825 #[prost(string, tag = "1")]
826 pub procedure_execution_rid: ::prost::alloc::string::String,
827 #[prost(string, optional, tag = "2")]
828 pub title: ::core::option::Option<::prost::alloc::string::String>,
829 #[prost(string, optional, tag = "3")]
830 pub description: ::core::option::Option<::prost::alloc::string::String>,
831 #[prost(string, optional, tag = "4")]
832 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
833 #[prost(message, optional, tag = "5")]
834 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
835 #[prost(message, optional, tag = "6")]
836 pub properties: ::core::option::Option<
837 super::super::super::types::PropertyUpdateWrapper,
838 >,
839}
840#[derive(Clone, PartialEq, ::prost::Message)]
841pub struct UpdateProcedureExecutionMetadataResponse {
842 #[prost(message, optional, tag = "1")]
843 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
844}
845#[derive(Clone, PartialEq, ::prost::Message)]
852pub struct UpdateProcedureExecutionRequest {
853 #[prost(string, tag = "1")]
854 pub procedure_execution_rid: ::prost::alloc::string::String,
855 #[prost(string, optional, tag = "2")]
856 pub title: ::core::option::Option<::prost::alloc::string::String>,
857 #[prost(string, optional, tag = "3")]
858 pub description: ::core::option::Option<::prost::alloc::string::String>,
859 #[prost(string, optional, tag = "4")]
860 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
861 #[prost(message, optional, tag = "5")]
862 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
863 #[prost(message, optional, tag = "6")]
864 pub properties: ::core::option::Option<
865 super::super::super::types::PropertyUpdateWrapper,
866 >,
867 #[prost(message, optional, tag = "7")]
868 pub state: ::core::option::Option<ProcedureExecutionState>,
869 #[prost(bool, optional, tag = "8")]
870 pub is_aborted: ::core::option::Option<bool>,
871 #[prost(message, optional, tag = "9")]
872 pub started_at: ::core::option::Option<
873 super::super::super::super::google::protobuf::Timestamp,
874 >,
875 #[prost(message, optional, tag = "10")]
876 pub finished_at: ::core::option::Option<
877 super::super::super::super::google::protobuf::Timestamp,
878 >,
879}
880#[derive(Clone, PartialEq, ::prost::Message)]
881pub struct UpdateProcedureExecutionResponse {
882 #[prost(message, optional, tag = "1")]
883 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
884}
885#[derive(Clone, PartialEq, ::prost::Message)]
886pub struct UpdateStepRequest {
887 #[prost(string, tag = "1")]
888 pub procedure_execution_rid: ::prost::alloc::string::String,
889 #[prost(string, tag = "2")]
891 pub step_id: ::prost::alloc::string::String,
892 #[prost(message, optional, tag = "3")]
895 pub value: ::core::option::Option<StepContentValue>,
896 #[prost(message, optional, tag = "4")]
899 pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
900 #[prost(message, optional, tag = "5")]
902 pub target_state: ::core::option::Option<TargetStepStateRequest>,
903}
904#[derive(Clone, PartialEq, ::prost::Message)]
905pub struct UpdateStepResponse {
906 #[prost(message, optional, tag = "1")]
907 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
908}
909#[derive(Clone, PartialEq, ::prost::Message)]
910pub struct UpdateStepSuccessConditionStatusRequest {
911 #[prost(string, tag = "1")]
912 pub procedure_execution_rid: ::prost::alloc::string::String,
913 #[prost(string, tag = "2")]
915 pub step_id: ::prost::alloc::string::String,
916 #[prost(message, optional, tag = "3")]
921 pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
922}
923#[derive(Clone, PartialEq, ::prost::Message)]
924pub struct UpdateStepSuccessConditionStatusResponse {
925 #[prost(message, optional, tag = "1")]
926 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
927}
928#[derive(Clone, PartialEq, ::prost::Message)]
929pub struct ProcedureExecutionSearchQuery {
930 #[prost(
931 oneof = "procedure_execution_search_query::Query",
932 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9"
933 )]
934 pub query: ::core::option::Option<procedure_execution_search_query::Query>,
935}
936pub mod procedure_execution_search_query {
938 #[derive(Clone, PartialEq, ::prost::Message)]
939 pub struct ProcedureExecutionSearchAndQuery {
940 #[prost(message, repeated, tag = "1")]
941 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
942 }
943 #[derive(Clone, PartialEq, ::prost::Message)]
944 pub struct ProcedureExecutionSearchOrQuery {
945 #[prost(message, repeated, tag = "1")]
946 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
947 }
948 #[derive(Clone, PartialEq, ::prost::Oneof)]
949 pub enum Query {
950 #[prost(string, tag = "1")]
951 SearchText(::prost::alloc::string::String),
952 #[prost(string, tag = "2")]
953 Label(::prost::alloc::string::String),
954 #[prost(message, tag = "3")]
955 Property(super::super::super::super::types::Property),
956 #[prost(message, tag = "4")]
957 And(ProcedureExecutionSearchAndQuery),
958 #[prost(message, tag = "5")]
959 Or(ProcedureExecutionSearchOrQuery),
960 #[prost(string, tag = "6")]
961 Workspace(::prost::alloc::string::String),
962 #[prost(string, tag = "7")]
963 ProcedureRid(::prost::alloc::string::String),
964 #[prost(string, tag = "8")]
965 CommitId(::prost::alloc::string::String),
966 #[prost(string, tag = "9")]
967 CreatedBy(::prost::alloc::string::String),
968 }
969}
970#[derive(Clone, Copy, PartialEq, ::prost::Message)]
971pub struct ProcedureExecutionSortOptions {
972 #[prost(bool, tag = "1")]
973 pub is_descending: bool,
974 #[prost(enumeration = "SearchProcedureExecutionsSortField", tag = "2")]
975 pub sort_field: i32,
976}
977#[derive(Clone, PartialEq, ::prost::Message)]
978pub struct SearchProcedureExecutionsRequest {
979 #[prost(message, optional, tag = "1")]
980 pub query: ::core::option::Option<ProcedureExecutionSearchQuery>,
981 #[prost(message, optional, tag = "2")]
982 pub sort_options: ::core::option::Option<ProcedureExecutionSortOptions>,
983 #[prost(int32, optional, tag = "3")]
985 pub page_size: ::core::option::Option<i32>,
986 #[prost(string, optional, tag = "4")]
987 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
988}
989#[derive(Clone, PartialEq, ::prost::Message)]
990pub struct SearchProcedureExecutionsResponse {
991 #[prost(message, repeated, tag = "1")]
992 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
993 #[prost(string, optional, tag = "2")]
994 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
995}
996#[derive(Clone, PartialEq, ::prost::Message)]
997pub struct BatchGetProcedureExecutionMetadataRequest {
998 #[prost(string, repeated, tag = "1")]
999 pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1000 ::prost::alloc::string::String,
1001 >,
1002}
1003#[derive(Clone, PartialEq, ::prost::Message)]
1004pub struct BatchGetProcedureExecutionMetadataResponse {
1005 #[prost(message, repeated, tag = "1")]
1006 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
1007}
1008#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1009#[repr(i32)]
1010pub enum SearchProcedureExecutionsSortField {
1011 Unspecified = 0,
1012 CreatedAt = 1,
1013 StartedAt = 2,
1014 FinishedAt = 3,
1015 UpdatedAt = 4,
1016}
1017impl SearchProcedureExecutionsSortField {
1018 pub fn as_str_name(&self) -> &'static str {
1023 match self {
1024 Self::Unspecified => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED",
1025 Self::CreatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT",
1026 Self::StartedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT",
1027 Self::FinishedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT",
1028 Self::UpdatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT",
1029 }
1030 }
1031 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1033 match value {
1034 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED" => {
1035 Some(Self::Unspecified)
1036 }
1037 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
1038 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT" => Some(Self::StartedAt),
1039 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT" => {
1040 Some(Self::FinishedAt)
1041 }
1042 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1043 _ => None,
1044 }
1045 }
1046}
1047#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1048#[repr(i32)]
1049pub enum ProcedureExecutionsServiceError {
1050 Unspecified = 0,
1051 NotFound = 1,
1052 ProcNotFound = 2,
1053 NodeNotFound = 3,
1054 InvalidNode = 4,
1055 InvalidGraph = 5,
1056 InvalidStepTransition = 6,
1057 InvalidSearchToken = 7,
1058 InvalidStepUpdate = 8,
1059}
1060impl ProcedureExecutionsServiceError {
1061 pub fn as_str_name(&self) -> &'static str {
1066 match self {
1067 Self::Unspecified => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED",
1068 Self::NotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND",
1069 Self::ProcNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND",
1070 Self::NodeNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND",
1071 Self::InvalidNode => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE",
1072 Self::InvalidGraph => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH",
1073 Self::InvalidStepTransition => {
1074 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION"
1075 }
1076 Self::InvalidSearchToken => {
1077 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN"
1078 }
1079 Self::InvalidStepUpdate => {
1080 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE"
1081 }
1082 }
1083 }
1084 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1086 match value {
1087 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
1088 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
1089 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND" => {
1090 Some(Self::ProcNotFound)
1091 }
1092 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND" => {
1093 Some(Self::NodeNotFound)
1094 }
1095 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE" => Some(Self::InvalidNode),
1096 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH" => {
1097 Some(Self::InvalidGraph)
1098 }
1099 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION" => {
1100 Some(Self::InvalidStepTransition)
1101 }
1102 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
1103 Some(Self::InvalidSearchToken)
1104 }
1105 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE" => {
1106 Some(Self::InvalidStepUpdate)
1107 }
1108 _ => None,
1109 }
1110 }
1111}
1112pub mod procedure_executions_service_client {
1114 #![allow(
1115 unused_variables,
1116 dead_code,
1117 missing_docs,
1118 clippy::wildcard_imports,
1119 clippy::let_unit_value,
1120 )]
1121 use tonic::codegen::*;
1122 use tonic::codegen::http::Uri;
1123 #[derive(Debug, Clone)]
1125 pub struct ProcedureExecutionsServiceClient<T> {
1126 inner: tonic::client::Grpc<T>,
1127 }
1128 impl ProcedureExecutionsServiceClient<tonic::transport::Channel> {
1129 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
1131 where
1132 D: TryInto<tonic::transport::Endpoint>,
1133 D::Error: Into<StdError>,
1134 {
1135 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
1136 Ok(Self::new(conn))
1137 }
1138 }
1139 impl<T> ProcedureExecutionsServiceClient<T>
1140 where
1141 T: tonic::client::GrpcService<tonic::body::Body>,
1142 T::Error: Into<StdError>,
1143 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
1144 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
1145 {
1146 pub fn new(inner: T) -> Self {
1147 let inner = tonic::client::Grpc::new(inner);
1148 Self { inner }
1149 }
1150 pub fn with_origin(inner: T, origin: Uri) -> Self {
1151 let inner = tonic::client::Grpc::with_origin(inner, origin);
1152 Self { inner }
1153 }
1154 pub fn with_interceptor<F>(
1155 inner: T,
1156 interceptor: F,
1157 ) -> ProcedureExecutionsServiceClient<InterceptedService<T, F>>
1158 where
1159 F: tonic::service::Interceptor,
1160 T::ResponseBody: Default,
1161 T: tonic::codegen::Service<
1162 http::Request<tonic::body::Body>,
1163 Response = http::Response<
1164 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
1165 >,
1166 >,
1167 <T as tonic::codegen::Service<
1168 http::Request<tonic::body::Body>,
1169 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
1170 {
1171 ProcedureExecutionsServiceClient::new(
1172 InterceptedService::new(inner, interceptor),
1173 )
1174 }
1175 #[must_use]
1180 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
1181 self.inner = self.inner.send_compressed(encoding);
1182 self
1183 }
1184 #[must_use]
1186 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
1187 self.inner = self.inner.accept_compressed(encoding);
1188 self
1189 }
1190 #[must_use]
1194 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
1195 self.inner = self.inner.max_decoding_message_size(limit);
1196 self
1197 }
1198 #[must_use]
1202 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
1203 self.inner = self.inner.max_encoding_message_size(limit);
1204 self
1205 }
1206 pub async fn create_procedure_execution(
1208 &mut self,
1209 request: impl tonic::IntoRequest<super::CreateProcedureExecutionRequest>,
1210 ) -> std::result::Result<
1211 tonic::Response<super::CreateProcedureExecutionResponse>,
1212 tonic::Status,
1213 > {
1214 self.inner
1215 .ready()
1216 .await
1217 .map_err(|e| {
1218 tonic::Status::unknown(
1219 format!("Service was not ready: {}", e.into()),
1220 )
1221 })?;
1222 let codec = tonic::codec::ProstCodec::default();
1223 let path = http::uri::PathAndQuery::from_static(
1224 "/nominal.procedures.executions.v1.ProcedureExecutionsService/CreateProcedureExecution",
1225 );
1226 let mut req = request.into_request();
1227 req.extensions_mut()
1228 .insert(
1229 GrpcMethod::new(
1230 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1231 "CreateProcedureExecution",
1232 ),
1233 );
1234 self.inner.unary(req, path, codec).await
1235 }
1236 pub async fn get_procedure_execution(
1238 &mut self,
1239 request: impl tonic::IntoRequest<super::GetProcedureExecutionRequest>,
1240 ) -> std::result::Result<
1241 tonic::Response<super::GetProcedureExecutionResponse>,
1242 tonic::Status,
1243 > {
1244 self.inner
1245 .ready()
1246 .await
1247 .map_err(|e| {
1248 tonic::Status::unknown(
1249 format!("Service was not ready: {}", e.into()),
1250 )
1251 })?;
1252 let codec = tonic::codec::ProstCodec::default();
1253 let path = http::uri::PathAndQuery::from_static(
1254 "/nominal.procedures.executions.v1.ProcedureExecutionsService/GetProcedureExecution",
1255 );
1256 let mut req = request.into_request();
1257 req.extensions_mut()
1258 .insert(
1259 GrpcMethod::new(
1260 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1261 "GetProcedureExecution",
1262 ),
1263 );
1264 self.inner.unary(req, path, codec).await
1265 }
1266 pub async fn update_procedure_execution_metadata(
1268 &mut self,
1269 request: impl tonic::IntoRequest<
1270 super::UpdateProcedureExecutionMetadataRequest,
1271 >,
1272 ) -> std::result::Result<
1273 tonic::Response<super::UpdateProcedureExecutionMetadataResponse>,
1274 tonic::Status,
1275 > {
1276 self.inner
1277 .ready()
1278 .await
1279 .map_err(|e| {
1280 tonic::Status::unknown(
1281 format!("Service was not ready: {}", e.into()),
1282 )
1283 })?;
1284 let codec = tonic::codec::ProstCodec::default();
1285 let path = http::uri::PathAndQuery::from_static(
1286 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecutionMetadata",
1287 );
1288 let mut req = request.into_request();
1289 req.extensions_mut()
1290 .insert(
1291 GrpcMethod::new(
1292 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1293 "UpdateProcedureExecutionMetadata",
1294 ),
1295 );
1296 self.inner.unary(req, path, codec).await
1297 }
1298 pub async fn update_procedure_execution(
1302 &mut self,
1303 request: impl tonic::IntoRequest<super::UpdateProcedureExecutionRequest>,
1304 ) -> std::result::Result<
1305 tonic::Response<super::UpdateProcedureExecutionResponse>,
1306 tonic::Status,
1307 > {
1308 self.inner
1309 .ready()
1310 .await
1311 .map_err(|e| {
1312 tonic::Status::unknown(
1313 format!("Service was not ready: {}", e.into()),
1314 )
1315 })?;
1316 let codec = tonic::codec::ProstCodec::default();
1317 let path = http::uri::PathAndQuery::from_static(
1318 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecution",
1319 );
1320 let mut req = request.into_request();
1321 req.extensions_mut()
1322 .insert(
1323 GrpcMethod::new(
1324 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1325 "UpdateProcedureExecution",
1326 ),
1327 );
1328 self.inner.unary(req, path, codec).await
1329 }
1330 pub async fn update_step(
1333 &mut self,
1334 request: impl tonic::IntoRequest<super::UpdateStepRequest>,
1335 ) -> std::result::Result<
1336 tonic::Response<super::UpdateStepResponse>,
1337 tonic::Status,
1338 > {
1339 self.inner
1340 .ready()
1341 .await
1342 .map_err(|e| {
1343 tonic::Status::unknown(
1344 format!("Service was not ready: {}", e.into()),
1345 )
1346 })?;
1347 let codec = tonic::codec::ProstCodec::default();
1348 let path = http::uri::PathAndQuery::from_static(
1349 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStep",
1350 );
1351 let mut req = request.into_request();
1352 req.extensions_mut()
1353 .insert(
1354 GrpcMethod::new(
1355 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1356 "UpdateStep",
1357 ),
1358 );
1359 self.inner.unary(req, path, codec).await
1360 }
1361 pub async fn update_step_success_condition_status(
1364 &mut self,
1365 request: impl tonic::IntoRequest<
1366 super::UpdateStepSuccessConditionStatusRequest,
1367 >,
1368 ) -> std::result::Result<
1369 tonic::Response<super::UpdateStepSuccessConditionStatusResponse>,
1370 tonic::Status,
1371 > {
1372 self.inner
1373 .ready()
1374 .await
1375 .map_err(|e| {
1376 tonic::Status::unknown(
1377 format!("Service was not ready: {}", e.into()),
1378 )
1379 })?;
1380 let codec = tonic::codec::ProstCodec::default();
1381 let path = http::uri::PathAndQuery::from_static(
1382 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepSuccessConditionStatus",
1383 );
1384 let mut req = request.into_request();
1385 req.extensions_mut()
1386 .insert(
1387 GrpcMethod::new(
1388 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1389 "UpdateStepSuccessConditionStatus",
1390 ),
1391 );
1392 self.inner.unary(req, path, codec).await
1393 }
1394 pub async fn search_procedure_executions(
1396 &mut self,
1397 request: impl tonic::IntoRequest<super::SearchProcedureExecutionsRequest>,
1398 ) -> std::result::Result<
1399 tonic::Response<super::SearchProcedureExecutionsResponse>,
1400 tonic::Status,
1401 > {
1402 self.inner
1403 .ready()
1404 .await
1405 .map_err(|e| {
1406 tonic::Status::unknown(
1407 format!("Service was not ready: {}", e.into()),
1408 )
1409 })?;
1410 let codec = tonic::codec::ProstCodec::default();
1411 let path = http::uri::PathAndQuery::from_static(
1412 "/nominal.procedures.executions.v1.ProcedureExecutionsService/SearchProcedureExecutions",
1413 );
1414 let mut req = request.into_request();
1415 req.extensions_mut()
1416 .insert(
1417 GrpcMethod::new(
1418 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1419 "SearchProcedureExecutions",
1420 ),
1421 );
1422 self.inner.unary(req, path, codec).await
1423 }
1424 pub async fn batch_get_procedure_execution_metadata(
1426 &mut self,
1427 request: impl tonic::IntoRequest<
1428 super::BatchGetProcedureExecutionMetadataRequest,
1429 >,
1430 ) -> std::result::Result<
1431 tonic::Response<super::BatchGetProcedureExecutionMetadataResponse>,
1432 tonic::Status,
1433 > {
1434 self.inner
1435 .ready()
1436 .await
1437 .map_err(|e| {
1438 tonic::Status::unknown(
1439 format!("Service was not ready: {}", e.into()),
1440 )
1441 })?;
1442 let codec = tonic::codec::ProstCodec::default();
1443 let path = http::uri::PathAndQuery::from_static(
1444 "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchGetProcedureExecutionMetadata",
1445 );
1446 let mut req = request.into_request();
1447 req.extensions_mut()
1448 .insert(
1449 GrpcMethod::new(
1450 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1451 "BatchGetProcedureExecutionMetadata",
1452 ),
1453 );
1454 self.inner.unary(req, path, codec).await
1455 }
1456 }
1457}