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, optional, tag = "3")]
631 pub file_type: ::core::option::Option<::prost::alloc::string::String>,
632}
633#[derive(Clone, PartialEq, ::prost::Message)]
634pub struct MultiFileUploadFieldValue {
635 #[prost(message, repeated, tag = "1")]
637 pub uploads: ::prost::alloc::vec::Vec<FileUploadFieldValue>,
638}
639#[derive(Clone, PartialEq, ::prost::Message)]
640pub struct ProcedureExecution {
641 #[prost(string, tag = "1")]
642 pub rid: ::prost::alloc::string::String,
643 #[prost(message, optional, tag = "2")]
644 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
645 #[prost(message, optional, tag = "3")]
646 pub state: ::core::option::Option<ProcedureExecutionState>,
647}
648#[derive(Clone, PartialEq, ::prost::Message)]
649pub struct ProcedureExecutionMetadata {
650 #[prost(string, tag = "1")]
651 pub rid: ::prost::alloc::string::String,
652 #[prost(string, tag = "2")]
654 pub procedure_rid: ::prost::alloc::string::String,
655 #[prost(string, tag = "3")]
658 pub procedure_commit_id: ::prost::alloc::string::String,
659 #[prost(string, tag = "4")]
660 pub title: ::prost::alloc::string::String,
661 #[prost(string, optional, tag = "5")]
662 pub description: ::core::option::Option<::prost::alloc::string::String>,
663 #[prost(string, repeated, tag = "6")]
664 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
665 #[prost(map = "string, string", tag = "7")]
666 pub properties: ::std::collections::HashMap<
667 ::prost::alloc::string::String,
668 ::prost::alloc::string::String,
669 >,
670 #[prost(string, tag = "8")]
671 pub created_by: ::prost::alloc::string::String,
672 #[prost(message, optional, tag = "9")]
673 pub created_at: ::core::option::Option<
674 super::super::super::super::google::protobuf::Timestamp,
675 >,
676 #[prost(string, tag = "10")]
677 pub updated_by: ::prost::alloc::string::String,
678 #[prost(message, optional, tag = "11")]
679 pub updated_at: ::core::option::Option<
680 super::super::super::super::google::protobuf::Timestamp,
681 >,
682 #[prost(message, optional, tag = "12")]
684 pub started_at: ::core::option::Option<
685 super::super::super::super::google::protobuf::Timestamp,
686 >,
687 #[prost(string, optional, tag = "13")]
688 pub started_by: ::core::option::Option<::prost::alloc::string::String>,
689 #[prost(message, optional, tag = "14")]
691 pub finished_at: ::core::option::Option<
692 super::super::super::super::google::protobuf::Timestamp,
693 >,
694 #[prost(string, optional, tag = "15")]
695 pub finished_by: ::core::option::Option<::prost::alloc::string::String>,
696 #[prost(message, optional, tag = "16")]
698 pub aborted_at: ::core::option::Option<
699 super::super::super::super::google::protobuf::Timestamp,
700 >,
701 #[prost(string, optional, tag = "17")]
702 pub aborted_by: ::core::option::Option<::prost::alloc::string::String>,
703 #[prost(message, optional, tag = "18")]
705 pub failed_at: ::core::option::Option<
706 super::super::super::super::google::protobuf::Timestamp,
707 >,
708 #[prost(string, optional, tag = "19")]
709 pub failed_by: ::core::option::Option<::prost::alloc::string::String>,
710 #[prost(string, optional, tag = "20")]
711 pub failed_reason: ::core::option::Option<::prost::alloc::string::String>,
712}
713#[derive(Clone, PartialEq, ::prost::Message)]
715pub struct ProcedureExecutionState {
716 #[prost(map = "string, message", tag = "1")]
718 pub global_fields: ::std::collections::HashMap<
719 ::prost::alloc::string::String,
720 FieldOutput,
721 >,
722 #[prost(map = "string, message", tag = "2")]
724 pub nodes: ::std::collections::HashMap<
725 ::prost::alloc::string::String,
726 ProcedureExecutionNode,
727 >,
728 #[prost(map = "string, message", tag = "3")]
732 pub section_edges: ::std::collections::HashMap<
733 ::prost::alloc::string::String,
734 super::super::v1::NodeList,
735 >,
736 #[prost(map = "string, message", tag = "4")]
740 pub step_edges: ::std::collections::HashMap<
741 ::prost::alloc::string::String,
742 super::super::v1::NodeList,
743 >,
744}
745#[derive(Clone, PartialEq, ::prost::Message)]
746pub struct Strings {
747 #[prost(string, repeated, tag = "1")]
748 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
749}
750#[derive(Clone, PartialEq, ::prost::Message)]
755pub struct FieldOutput {
756 #[prost(oneof = "field_output::Output", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10")]
758 pub output: ::core::option::Option<field_output::Output>,
759}
760pub mod field_output {
762 #[derive(Clone, PartialEq, ::prost::Oneof)]
764 pub enum Output {
765 #[prost(string, tag = "1")]
769 AssetRid(::prost::alloc::string::String),
770 #[prost(string, tag = "2")]
771 StringValue(::prost::alloc::string::String),
772 #[prost(double, tag = "3")]
773 DoubleValue(f64),
774 #[prost(bool, tag = "4")]
775 BooleanValue(bool),
776 #[prost(int64, tag = "5")]
777 IntValue(i64),
778 #[prost(message, tag = "6")]
779 StringsValue(super::Strings),
780 #[prost(string, tag = "7")]
781 IngestJobRid(::prost::alloc::string::String),
782 #[prost(string, tag = "8")]
783 RunRid(::prost::alloc::string::String),
784 #[prost(message, tag = "9")]
785 FileUploadValue(super::FileUploadFieldValue),
786 #[prost(message, tag = "10")]
787 MultiFileUploadValue(super::MultiFileUploadFieldValue),
788 }
789}
790#[derive(Clone, PartialEq, ::prost::Message)]
791pub struct CreateProcedureExecutionRequest {
792 #[prost(string, tag = "1")]
793 pub procedure_rid: ::prost::alloc::string::String,
794 #[prost(string, tag = "2")]
795 pub procedure_commit_id: ::prost::alloc::string::String,
796 #[prost(string, tag = "3")]
797 pub title: ::prost::alloc::string::String,
798 #[prost(string, optional, tag = "4")]
799 pub description: ::core::option::Option<::prost::alloc::string::String>,
800 #[prost(bool, optional, tag = "5")]
801 pub start_immediately: ::core::option::Option<bool>,
802}
803#[derive(Clone, PartialEq, ::prost::Message)]
804pub struct CreateProcedureExecutionResponse {
805 #[prost(message, optional, tag = "1")]
806 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
807}
808#[derive(Clone, PartialEq, ::prost::Message)]
809pub struct GetProcedureExecutionRequest {
810 #[prost(string, tag = "1")]
811 pub procedure_execution_rid: ::prost::alloc::string::String,
812 #[prost(bool, tag = "2")]
815 pub include_display_graph: bool,
816}
817#[derive(Clone, PartialEq, ::prost::Message)]
818pub struct GetProcedureExecutionResponse {
819 #[prost(message, optional, tag = "1")]
820 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
821 #[prost(message, optional, tag = "2")]
824 pub display_graph: ::core::option::Option<super::super::v1::ProcedureDisplayGraph>,
825}
826#[derive(Clone, PartialEq, ::prost::Message)]
827pub struct UpdateProcedureExecutionMetadataRequest {
828 #[prost(string, tag = "1")]
829 pub procedure_execution_rid: ::prost::alloc::string::String,
830 #[prost(string, optional, tag = "2")]
831 pub title: ::core::option::Option<::prost::alloc::string::String>,
832 #[prost(string, optional, tag = "3")]
833 pub description: ::core::option::Option<::prost::alloc::string::String>,
834 #[prost(string, optional, tag = "4")]
835 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
836 #[prost(message, optional, tag = "5")]
837 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
838 #[prost(message, optional, tag = "6")]
839 pub properties: ::core::option::Option<
840 super::super::super::types::PropertyUpdateWrapper,
841 >,
842}
843#[derive(Clone, PartialEq, ::prost::Message)]
844pub struct UpdateProcedureExecutionMetadataResponse {
845 #[prost(message, optional, tag = "1")]
846 pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
847}
848#[derive(Clone, PartialEq, ::prost::Message)]
855pub struct UpdateProcedureExecutionRequest {
856 #[prost(string, tag = "1")]
857 pub procedure_execution_rid: ::prost::alloc::string::String,
858 #[prost(string, optional, tag = "2")]
859 pub title: ::core::option::Option<::prost::alloc::string::String>,
860 #[prost(string, optional, tag = "3")]
861 pub description: ::core::option::Option<::prost::alloc::string::String>,
862 #[prost(string, optional, tag = "4")]
863 pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
864 #[prost(message, optional, tag = "5")]
865 pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
866 #[prost(message, optional, tag = "6")]
867 pub properties: ::core::option::Option<
868 super::super::super::types::PropertyUpdateWrapper,
869 >,
870 #[prost(message, optional, tag = "7")]
871 pub state: ::core::option::Option<ProcedureExecutionState>,
872 #[prost(bool, optional, tag = "8")]
873 pub is_aborted: ::core::option::Option<bool>,
874 #[prost(message, optional, tag = "9")]
875 pub started_at: ::core::option::Option<
876 super::super::super::super::google::protobuf::Timestamp,
877 >,
878 #[prost(message, optional, tag = "10")]
879 pub finished_at: ::core::option::Option<
880 super::super::super::super::google::protobuf::Timestamp,
881 >,
882}
883#[derive(Clone, PartialEq, ::prost::Message)]
884pub struct UpdateProcedureExecutionResponse {
885 #[prost(message, optional, tag = "1")]
886 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
887}
888#[derive(Clone, PartialEq, ::prost::Message)]
889pub struct UpdateStepRequest {
890 #[prost(string, tag = "1")]
891 pub procedure_execution_rid: ::prost::alloc::string::String,
892 #[prost(string, tag = "2")]
894 pub step_id: ::prost::alloc::string::String,
895 #[prost(message, optional, tag = "3")]
898 pub value: ::core::option::Option<StepContentValue>,
899 #[prost(message, optional, tag = "4")]
902 pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
903 #[prost(message, optional, tag = "5")]
905 pub target_state: ::core::option::Option<TargetStepStateRequest>,
906}
907#[derive(Clone, PartialEq, ::prost::Message)]
908pub struct UpdateStepResponse {
909 #[prost(message, optional, tag = "1")]
910 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
911}
912#[derive(Clone, PartialEq, ::prost::Message)]
913pub struct UpdateStepSuccessConditionStatusRequest {
914 #[prost(string, tag = "1")]
915 pub procedure_execution_rid: ::prost::alloc::string::String,
916 #[prost(string, tag = "2")]
918 pub step_id: ::prost::alloc::string::String,
919 #[prost(message, optional, tag = "3")]
924 pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
925}
926#[derive(Clone, PartialEq, ::prost::Message)]
927pub struct UpdateStepSuccessConditionStatusResponse {
928 #[prost(message, optional, tag = "1")]
929 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
930}
931#[derive(Clone, PartialEq, ::prost::Message)]
932pub struct RepeatStepRequest {
933 #[prost(string, tag = "1")]
934 pub procedure_execution_rid: ::prost::alloc::string::String,
935 #[prost(string, tag = "2")]
937 pub step_id: ::prost::alloc::string::String,
938 #[prost(enumeration = "RepeatStepBehavior", tag = "6")]
940 pub behavior: i32,
941 #[prost(message, optional, tag = "3")]
943 pub value: ::core::option::Option<StepContentValue>,
944 #[prost(message, optional, tag = "4")]
946 pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
947 #[prost(message, optional, tag = "5")]
949 pub target_state: ::core::option::Option<TargetStepStateRequest>,
950}
951#[derive(Clone, PartialEq, ::prost::Message)]
952pub struct RepeatStepResponse {
953 #[prost(message, optional, tag = "1")]
954 pub procedure_execution: ::core::option::Option<ProcedureExecution>,
955}
956#[derive(Clone, PartialEq, ::prost::Message)]
957pub struct ProcedureExecutionSearchQuery {
958 #[prost(
959 oneof = "procedure_execution_search_query::Query",
960 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9"
961 )]
962 pub query: ::core::option::Option<procedure_execution_search_query::Query>,
963}
964pub mod procedure_execution_search_query {
966 #[derive(Clone, PartialEq, ::prost::Message)]
967 pub struct ProcedureExecutionSearchAndQuery {
968 #[prost(message, repeated, tag = "1")]
969 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
970 }
971 #[derive(Clone, PartialEq, ::prost::Message)]
972 pub struct ProcedureExecutionSearchOrQuery {
973 #[prost(message, repeated, tag = "1")]
974 pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
975 }
976 #[derive(Clone, PartialEq, ::prost::Oneof)]
977 pub enum Query {
978 #[prost(string, tag = "1")]
979 SearchText(::prost::alloc::string::String),
980 #[prost(string, tag = "2")]
981 Label(::prost::alloc::string::String),
982 #[prost(message, tag = "3")]
983 Property(super::super::super::super::types::Property),
984 #[prost(message, tag = "4")]
985 And(ProcedureExecutionSearchAndQuery),
986 #[prost(message, tag = "5")]
987 Or(ProcedureExecutionSearchOrQuery),
988 #[prost(string, tag = "6")]
989 Workspace(::prost::alloc::string::String),
990 #[prost(string, tag = "7")]
991 ProcedureRid(::prost::alloc::string::String),
992 #[prost(string, tag = "8")]
993 CommitId(::prost::alloc::string::String),
994 #[prost(string, tag = "9")]
995 CreatedBy(::prost::alloc::string::String),
996 }
997}
998#[derive(Clone, Copy, PartialEq, ::prost::Message)]
999pub struct ProcedureExecutionSortOptions {
1000 #[prost(bool, tag = "1")]
1001 pub is_descending: bool,
1002 #[prost(enumeration = "SearchProcedureExecutionsSortField", tag = "2")]
1003 pub sort_field: i32,
1004}
1005#[derive(Clone, PartialEq, ::prost::Message)]
1006pub struct SearchProcedureExecutionsRequest {
1007 #[prost(message, optional, tag = "1")]
1008 pub query: ::core::option::Option<ProcedureExecutionSearchQuery>,
1009 #[prost(message, optional, tag = "2")]
1010 pub sort_options: ::core::option::Option<ProcedureExecutionSortOptions>,
1011 #[prost(int32, optional, tag = "3")]
1013 pub page_size: ::core::option::Option<i32>,
1014 #[prost(string, optional, tag = "4")]
1015 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1016}
1017#[derive(Clone, PartialEq, ::prost::Message)]
1018pub struct SearchProcedureExecutionsResponse {
1019 #[prost(message, repeated, tag = "1")]
1020 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
1021 #[prost(string, optional, tag = "2")]
1022 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1023}
1024#[derive(Clone, PartialEq, ::prost::Message)]
1025pub struct BatchGetProcedureExecutionMetadataRequest {
1026 #[prost(string, repeated, tag = "1")]
1027 pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1028 ::prost::alloc::string::String,
1029 >,
1030}
1031#[derive(Clone, PartialEq, ::prost::Message)]
1032pub struct BatchGetProcedureExecutionMetadataResponse {
1033 #[prost(message, repeated, tag = "1")]
1034 pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
1035}
1036#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1037#[repr(i32)]
1038pub enum RepeatStepBehavior {
1039 Unspecified = 0,
1040 Isolated = 1,
1043}
1044impl RepeatStepBehavior {
1045 pub fn as_str_name(&self) -> &'static str {
1050 match self {
1051 Self::Unspecified => "REPEAT_STEP_BEHAVIOR_UNSPECIFIED",
1052 Self::Isolated => "REPEAT_STEP_BEHAVIOR_ISOLATED",
1053 }
1054 }
1055 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1057 match value {
1058 "REPEAT_STEP_BEHAVIOR_UNSPECIFIED" => Some(Self::Unspecified),
1059 "REPEAT_STEP_BEHAVIOR_ISOLATED" => Some(Self::Isolated),
1060 _ => None,
1061 }
1062 }
1063}
1064#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1065#[repr(i32)]
1066pub enum SearchProcedureExecutionsSortField {
1067 Unspecified = 0,
1068 CreatedAt = 1,
1069 StartedAt = 2,
1070 FinishedAt = 3,
1071 UpdatedAt = 4,
1072}
1073impl SearchProcedureExecutionsSortField {
1074 pub fn as_str_name(&self) -> &'static str {
1079 match self {
1080 Self::Unspecified => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED",
1081 Self::CreatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT",
1082 Self::StartedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT",
1083 Self::FinishedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT",
1084 Self::UpdatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT",
1085 }
1086 }
1087 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1089 match value {
1090 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED" => {
1091 Some(Self::Unspecified)
1092 }
1093 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
1094 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT" => Some(Self::StartedAt),
1095 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT" => {
1096 Some(Self::FinishedAt)
1097 }
1098 "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1099 _ => None,
1100 }
1101 }
1102}
1103#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1104#[repr(i32)]
1105pub enum ProcedureExecutionsServiceError {
1106 Unspecified = 0,
1107 NotFound = 1,
1108 ProcNotFound = 2,
1109 NodeNotFound = 3,
1110 InvalidNode = 4,
1111 InvalidGraph = 5,
1112 InvalidStepTransition = 6,
1113 InvalidSearchToken = 7,
1114 InvalidStepUpdate = 8,
1115}
1116impl ProcedureExecutionsServiceError {
1117 pub fn as_str_name(&self) -> &'static str {
1122 match self {
1123 Self::Unspecified => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED",
1124 Self::NotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND",
1125 Self::ProcNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND",
1126 Self::NodeNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND",
1127 Self::InvalidNode => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE",
1128 Self::InvalidGraph => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH",
1129 Self::InvalidStepTransition => {
1130 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION"
1131 }
1132 Self::InvalidSearchToken => {
1133 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN"
1134 }
1135 Self::InvalidStepUpdate => {
1136 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE"
1137 }
1138 }
1139 }
1140 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1142 match value {
1143 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
1144 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
1145 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND" => {
1146 Some(Self::ProcNotFound)
1147 }
1148 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND" => {
1149 Some(Self::NodeNotFound)
1150 }
1151 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE" => Some(Self::InvalidNode),
1152 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH" => {
1153 Some(Self::InvalidGraph)
1154 }
1155 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION" => {
1156 Some(Self::InvalidStepTransition)
1157 }
1158 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
1159 Some(Self::InvalidSearchToken)
1160 }
1161 "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE" => {
1162 Some(Self::InvalidStepUpdate)
1163 }
1164 _ => None,
1165 }
1166 }
1167}
1168pub mod procedure_executions_service_client {
1170 #![allow(
1171 unused_variables,
1172 dead_code,
1173 missing_docs,
1174 clippy::wildcard_imports,
1175 clippy::let_unit_value,
1176 )]
1177 use tonic::codegen::*;
1178 use tonic::codegen::http::Uri;
1179 #[derive(Debug, Clone)]
1181 pub struct ProcedureExecutionsServiceClient<T> {
1182 inner: tonic::client::Grpc<T>,
1183 }
1184 impl ProcedureExecutionsServiceClient<tonic::transport::Channel> {
1185 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
1187 where
1188 D: TryInto<tonic::transport::Endpoint>,
1189 D::Error: Into<StdError>,
1190 {
1191 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
1192 Ok(Self::new(conn))
1193 }
1194 }
1195 impl<T> ProcedureExecutionsServiceClient<T>
1196 where
1197 T: tonic::client::GrpcService<tonic::body::Body>,
1198 T::Error: Into<StdError>,
1199 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
1200 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
1201 {
1202 pub fn new(inner: T) -> Self {
1203 let inner = tonic::client::Grpc::new(inner);
1204 Self { inner }
1205 }
1206 pub fn with_origin(inner: T, origin: Uri) -> Self {
1207 let inner = tonic::client::Grpc::with_origin(inner, origin);
1208 Self { inner }
1209 }
1210 pub fn with_interceptor<F>(
1211 inner: T,
1212 interceptor: F,
1213 ) -> ProcedureExecutionsServiceClient<InterceptedService<T, F>>
1214 where
1215 F: tonic::service::Interceptor,
1216 T::ResponseBody: Default,
1217 T: tonic::codegen::Service<
1218 http::Request<tonic::body::Body>,
1219 Response = http::Response<
1220 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
1221 >,
1222 >,
1223 <T as tonic::codegen::Service<
1224 http::Request<tonic::body::Body>,
1225 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
1226 {
1227 ProcedureExecutionsServiceClient::new(
1228 InterceptedService::new(inner, interceptor),
1229 )
1230 }
1231 #[must_use]
1236 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
1237 self.inner = self.inner.send_compressed(encoding);
1238 self
1239 }
1240 #[must_use]
1242 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
1243 self.inner = self.inner.accept_compressed(encoding);
1244 self
1245 }
1246 #[must_use]
1250 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
1251 self.inner = self.inner.max_decoding_message_size(limit);
1252 self
1253 }
1254 #[must_use]
1258 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
1259 self.inner = self.inner.max_encoding_message_size(limit);
1260 self
1261 }
1262 pub async fn create_procedure_execution(
1264 &mut self,
1265 request: impl tonic::IntoRequest<super::CreateProcedureExecutionRequest>,
1266 ) -> std::result::Result<
1267 tonic::Response<super::CreateProcedureExecutionResponse>,
1268 tonic::Status,
1269 > {
1270 self.inner
1271 .ready()
1272 .await
1273 .map_err(|e| {
1274 tonic::Status::unknown(
1275 format!("Service was not ready: {}", e.into()),
1276 )
1277 })?;
1278 let codec = tonic::codec::ProstCodec::default();
1279 let path = http::uri::PathAndQuery::from_static(
1280 "/nominal.procedures.executions.v1.ProcedureExecutionsService/CreateProcedureExecution",
1281 );
1282 let mut req = request.into_request();
1283 req.extensions_mut()
1284 .insert(
1285 GrpcMethod::new(
1286 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1287 "CreateProcedureExecution",
1288 ),
1289 );
1290 self.inner.unary(req, path, codec).await
1291 }
1292 pub async fn get_procedure_execution(
1294 &mut self,
1295 request: impl tonic::IntoRequest<super::GetProcedureExecutionRequest>,
1296 ) -> std::result::Result<
1297 tonic::Response<super::GetProcedureExecutionResponse>,
1298 tonic::Status,
1299 > {
1300 self.inner
1301 .ready()
1302 .await
1303 .map_err(|e| {
1304 tonic::Status::unknown(
1305 format!("Service was not ready: {}", e.into()),
1306 )
1307 })?;
1308 let codec = tonic::codec::ProstCodec::default();
1309 let path = http::uri::PathAndQuery::from_static(
1310 "/nominal.procedures.executions.v1.ProcedureExecutionsService/GetProcedureExecution",
1311 );
1312 let mut req = request.into_request();
1313 req.extensions_mut()
1314 .insert(
1315 GrpcMethod::new(
1316 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1317 "GetProcedureExecution",
1318 ),
1319 );
1320 self.inner.unary(req, path, codec).await
1321 }
1322 pub async fn update_procedure_execution_metadata(
1324 &mut self,
1325 request: impl tonic::IntoRequest<
1326 super::UpdateProcedureExecutionMetadataRequest,
1327 >,
1328 ) -> std::result::Result<
1329 tonic::Response<super::UpdateProcedureExecutionMetadataResponse>,
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/UpdateProcedureExecutionMetadata",
1343 );
1344 let mut req = request.into_request();
1345 req.extensions_mut()
1346 .insert(
1347 GrpcMethod::new(
1348 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1349 "UpdateProcedureExecutionMetadata",
1350 ),
1351 );
1352 self.inner.unary(req, path, codec).await
1353 }
1354 pub async fn update_procedure_execution(
1358 &mut self,
1359 request: impl tonic::IntoRequest<super::UpdateProcedureExecutionRequest>,
1360 ) -> std::result::Result<
1361 tonic::Response<super::UpdateProcedureExecutionResponse>,
1362 tonic::Status,
1363 > {
1364 self.inner
1365 .ready()
1366 .await
1367 .map_err(|e| {
1368 tonic::Status::unknown(
1369 format!("Service was not ready: {}", e.into()),
1370 )
1371 })?;
1372 let codec = tonic::codec::ProstCodec::default();
1373 let path = http::uri::PathAndQuery::from_static(
1374 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecution",
1375 );
1376 let mut req = request.into_request();
1377 req.extensions_mut()
1378 .insert(
1379 GrpcMethod::new(
1380 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1381 "UpdateProcedureExecution",
1382 ),
1383 );
1384 self.inner.unary(req, path, codec).await
1385 }
1386 pub async fn update_step(
1389 &mut self,
1390 request: impl tonic::IntoRequest<super::UpdateStepRequest>,
1391 ) -> std::result::Result<
1392 tonic::Response<super::UpdateStepResponse>,
1393 tonic::Status,
1394 > {
1395 self.inner
1396 .ready()
1397 .await
1398 .map_err(|e| {
1399 tonic::Status::unknown(
1400 format!("Service was not ready: {}", e.into()),
1401 )
1402 })?;
1403 let codec = tonic::codec::ProstCodec::default();
1404 let path = http::uri::PathAndQuery::from_static(
1405 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStep",
1406 );
1407 let mut req = request.into_request();
1408 req.extensions_mut()
1409 .insert(
1410 GrpcMethod::new(
1411 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1412 "UpdateStep",
1413 ),
1414 );
1415 self.inner.unary(req, path, codec).await
1416 }
1417 pub async fn update_step_success_condition_status(
1420 &mut self,
1421 request: impl tonic::IntoRequest<
1422 super::UpdateStepSuccessConditionStatusRequest,
1423 >,
1424 ) -> std::result::Result<
1425 tonic::Response<super::UpdateStepSuccessConditionStatusResponse>,
1426 tonic::Status,
1427 > {
1428 self.inner
1429 .ready()
1430 .await
1431 .map_err(|e| {
1432 tonic::Status::unknown(
1433 format!("Service was not ready: {}", e.into()),
1434 )
1435 })?;
1436 let codec = tonic::codec::ProstCodec::default();
1437 let path = http::uri::PathAndQuery::from_static(
1438 "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepSuccessConditionStatus",
1439 );
1440 let mut req = request.into_request();
1441 req.extensions_mut()
1442 .insert(
1443 GrpcMethod::new(
1444 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1445 "UpdateStepSuccessConditionStatus",
1446 ),
1447 );
1448 self.inner.unary(req, path, codec).await
1449 }
1450 pub async fn repeat_step(
1453 &mut self,
1454 request: impl tonic::IntoRequest<super::RepeatStepRequest>,
1455 ) -> std::result::Result<
1456 tonic::Response<super::RepeatStepResponse>,
1457 tonic::Status,
1458 > {
1459 self.inner
1460 .ready()
1461 .await
1462 .map_err(|e| {
1463 tonic::Status::unknown(
1464 format!("Service was not ready: {}", e.into()),
1465 )
1466 })?;
1467 let codec = tonic::codec::ProstCodec::default();
1468 let path = http::uri::PathAndQuery::from_static(
1469 "/nominal.procedures.executions.v1.ProcedureExecutionsService/RepeatStep",
1470 );
1471 let mut req = request.into_request();
1472 req.extensions_mut()
1473 .insert(
1474 GrpcMethod::new(
1475 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1476 "RepeatStep",
1477 ),
1478 );
1479 self.inner.unary(req, path, codec).await
1480 }
1481 pub async fn search_procedure_executions(
1483 &mut self,
1484 request: impl tonic::IntoRequest<super::SearchProcedureExecutionsRequest>,
1485 ) -> std::result::Result<
1486 tonic::Response<super::SearchProcedureExecutionsResponse>,
1487 tonic::Status,
1488 > {
1489 self.inner
1490 .ready()
1491 .await
1492 .map_err(|e| {
1493 tonic::Status::unknown(
1494 format!("Service was not ready: {}", e.into()),
1495 )
1496 })?;
1497 let codec = tonic::codec::ProstCodec::default();
1498 let path = http::uri::PathAndQuery::from_static(
1499 "/nominal.procedures.executions.v1.ProcedureExecutionsService/SearchProcedureExecutions",
1500 );
1501 let mut req = request.into_request();
1502 req.extensions_mut()
1503 .insert(
1504 GrpcMethod::new(
1505 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1506 "SearchProcedureExecutions",
1507 ),
1508 );
1509 self.inner.unary(req, path, codec).await
1510 }
1511 pub async fn batch_get_procedure_execution_metadata(
1513 &mut self,
1514 request: impl tonic::IntoRequest<
1515 super::BatchGetProcedureExecutionMetadataRequest,
1516 >,
1517 ) -> std::result::Result<
1518 tonic::Response<super::BatchGetProcedureExecutionMetadataResponse>,
1519 tonic::Status,
1520 > {
1521 self.inner
1522 .ready()
1523 .await
1524 .map_err(|e| {
1525 tonic::Status::unknown(
1526 format!("Service was not ready: {}", e.into()),
1527 )
1528 })?;
1529 let codec = tonic::codec::ProstCodec::default();
1530 let path = http::uri::PathAndQuery::from_static(
1531 "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchGetProcedureExecutionMetadata",
1532 );
1533 let mut req = request.into_request();
1534 req.extensions_mut()
1535 .insert(
1536 GrpcMethod::new(
1537 "nominal.procedures.executions.v1.ProcedureExecutionsService",
1538 "BatchGetProcedureExecutionMetadata",
1539 ),
1540 );
1541 self.inner.unary(req, path, codec).await
1542 }
1543 }
1544}