Skip to main content

nominal_api_proto/proto/
nominal.procedures.executions.v1.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct ProcedureExecutionNode {
4    #[prost(oneof = "procedure_execution_node::Node", tags = "1, 2")]
5    pub node: ::core::option::Option<procedure_execution_node::Node>,
6}
7/// Nested message and enum types in `ProcedureExecutionNode`.
8pub mod procedure_execution_node {
9    #[derive(Clone, PartialEq, ::prost::Oneof)]
10    pub enum Node {
11        #[prost(message, tag = "1")]
12        Section(super::ProcedureExecutionSectionNode),
13        #[prost(message, tag = "2")]
14        Step(super::ProcedureExecutionStepNode),
15    }
16}
17#[derive(Clone, PartialEq, ::prost::Message)]
18pub struct ProcedureExecutionSectionNode {
19    #[prost(string, tag = "1")]
20    pub id: ::prost::alloc::string::String,
21    #[prost(string, tag = "2")]
22    pub template_node_id: ::prost::alloc::string::String,
23    #[prost(string, tag = "3")]
24    pub title: ::prost::alloc::string::String,
25    #[prost(string, optional, tag = "4")]
26    pub description: ::core::option::Option<::prost::alloc::string::String>,
27    #[prost(string, optional, tag = "5")]
28    pub template_commit_id: ::core::option::Option<::prost::alloc::string::String>,
29}
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct ProcedureExecutionStepNode {
32    #[prost(string, tag = "1")]
33    pub id: ::prost::alloc::string::String,
34    #[prost(string, tag = "2")]
35    pub template_node_id: ::prost::alloc::string::String,
36    #[prost(bool, tag = "3")]
37    pub is_outdated: bool,
38    #[prost(message, optional, tag = "4")]
39    pub state: ::core::option::Option<ExecutionStepState>,
40    #[prost(message, optional, tag = "5")]
41    pub value: ::core::option::Option<StepContentValue>,
42    #[prost(message, optional, tag = "6")]
43    pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
44    #[prost(message, optional, tag = "7")]
45    pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
46    #[prost(message, repeated, tag = "8")]
47    pub completion_action_statuses: ::prost::alloc::vec::Vec<CompletionActionStatus>,
48    #[prost(map = "string, message", tag = "10")]
49    pub outputs: ::std::collections::HashMap<
50        ::prost::alloc::string::String,
51        FieldOutput,
52    >,
53    #[prost(string, optional, tag = "11")]
54    pub template_commit_id: ::core::option::Option<::prost::alloc::string::String>,
55    #[prost(message, repeated, tag = "12")]
56    pub channel_capture_statuses: ::prost::alloc::vec::Vec<ChannelCaptureStatus>,
57}
58#[derive(Clone, Copy, PartialEq, ::prost::Message)]
59pub struct ExecutionStepNotStarted {}
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct ExecutionStepSkipped {
62    #[prost(message, optional, tag = "1")]
63    pub skipped_at: ::core::option::Option<
64        super::super::super::super::google::protobuf::Timestamp,
65    >,
66    #[prost(string, tag = "2")]
67    pub skipped_by: ::prost::alloc::string::String,
68    #[prost(string, optional, tag = "3")]
69    pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
70    #[prost(message, optional, tag = "4")]
71    pub started_at: ::core::option::Option<
72        super::super::super::super::google::protobuf::Timestamp,
73    >,
74    #[prost(string, optional, tag = "5")]
75    pub started_by: ::core::option::Option<::prost::alloc::string::String>,
76    #[prost(message, optional, tag = "6")]
77    pub submitted_at: ::core::option::Option<
78        super::super::super::super::google::protobuf::Timestamp,
79    >,
80    #[prost(string, optional, tag = "7")]
81    pub submitted_by: ::core::option::Option<::prost::alloc::string::String>,
82}
83#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct ExecutionStepInProgress {
85    #[prost(message, optional, tag = "1")]
86    pub started_at: ::core::option::Option<
87        super::super::super::super::google::protobuf::Timestamp,
88    >,
89    #[prost(string, tag = "2")]
90    pub started_by: ::prost::alloc::string::String,
91}
92#[derive(Clone, PartialEq, ::prost::Message)]
93pub struct ExecutionStepSubmitted {
94    #[prost(message, optional, tag = "1")]
95    pub started_at: ::core::option::Option<
96        super::super::super::super::google::protobuf::Timestamp,
97    >,
98    #[prost(string, tag = "2")]
99    pub started_by: ::prost::alloc::string::String,
100    #[prost(message, optional, tag = "3")]
101    pub submitted_at: ::core::option::Option<
102        super::super::super::super::google::protobuf::Timestamp,
103    >,
104    #[prost(string, tag = "4")]
105    pub submitted_by: ::prost::alloc::string::String,
106}
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct ExecutionStepSucceeded {
109    #[prost(message, optional, tag = "1")]
110    pub started_at: ::core::option::Option<
111        super::super::super::super::google::protobuf::Timestamp,
112    >,
113    #[prost(string, tag = "2")]
114    pub started_by: ::prost::alloc::string::String,
115    #[prost(message, optional, tag = "3")]
116    pub submitted_at: ::core::option::Option<
117        super::super::super::super::google::protobuf::Timestamp,
118    >,
119    #[prost(string, tag = "4")]
120    pub submitted_by: ::prost::alloc::string::String,
121    #[prost(message, optional, tag = "5")]
122    pub succeeded_at: ::core::option::Option<
123        super::super::super::super::google::protobuf::Timestamp,
124    >,
125    #[prost(string, tag = "6")]
126    pub succeeded_by: ::prost::alloc::string::String,
127}
128#[derive(Clone, PartialEq, ::prost::Message)]
129pub struct ExecutionStepErrored {
130    #[prost(message, optional, tag = "1")]
131    pub started_at: ::core::option::Option<
132        super::super::super::super::google::protobuf::Timestamp,
133    >,
134    #[prost(string, optional, tag = "2")]
135    pub started_by: ::core::option::Option<::prost::alloc::string::String>,
136    #[prost(message, optional, tag = "3")]
137    pub submitted_at: ::core::option::Option<
138        super::super::super::super::google::protobuf::Timestamp,
139    >,
140    #[prost(string, optional, tag = "4")]
141    pub submitted_by: ::core::option::Option<::prost::alloc::string::String>,
142    #[prost(message, optional, tag = "5")]
143    pub errored_at: ::core::option::Option<
144        super::super::super::super::google::protobuf::Timestamp,
145    >,
146    #[prost(string, tag = "6")]
147    pub errored_by: ::prost::alloc::string::String,
148    #[prost(string, tag = "7")]
149    pub error: ::prost::alloc::string::String,
150    #[prost(message, optional, tag = "8")]
151    pub skipped_at: ::core::option::Option<
152        super::super::super::super::google::protobuf::Timestamp,
153    >,
154    #[prost(string, optional, tag = "9")]
155    pub skipped_by: ::core::option::Option<::prost::alloc::string::String>,
156    #[prost(string, optional, tag = "10")]
157    pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
158    #[prost(message, optional, tag = "11")]
159    pub succeeded_at: ::core::option::Option<
160        super::super::super::super::google::protobuf::Timestamp,
161    >,
162    #[prost(string, optional, tag = "12")]
163    pub succeeded_by: ::core::option::Option<::prost::alloc::string::String>,
164}
165#[derive(Clone, PartialEq, ::prost::Message)]
166pub struct ExecutionStepState {
167    #[prost(oneof = "execution_step_state::State", tags = "1, 2, 3, 4, 5, 6")]
168    pub state: ::core::option::Option<execution_step_state::State>,
169}
170/// Nested message and enum types in `ExecutionStepState`.
171pub mod execution_step_state {
172    #[derive(Clone, PartialEq, ::prost::Oneof)]
173    pub enum State {
174        #[prost(message, tag = "1")]
175        NotStarted(super::ExecutionStepNotStarted),
176        #[prost(message, tag = "2")]
177        InProgress(super::ExecutionStepInProgress),
178        #[prost(message, tag = "3")]
179        Submitted(super::ExecutionStepSubmitted),
180        #[prost(message, tag = "4")]
181        Skipped(super::ExecutionStepSkipped),
182        #[prost(message, tag = "5")]
183        Succeeded(super::ExecutionStepSucceeded),
184        #[prost(message, tag = "6")]
185        Errored(super::ExecutionStepErrored),
186    }
187}
188#[derive(Clone, Copy, PartialEq, ::prost::Message)]
189pub struct StepInProgressRequest {}
190#[derive(Clone, Copy, PartialEq, ::prost::Message)]
191pub struct StepSubmittedRequest {}
192#[derive(Clone, PartialEq, ::prost::Message)]
193pub struct StepSkippedRequest {
194    #[prost(string, optional, tag = "1")]
195    pub skip_reason: ::core::option::Option<::prost::alloc::string::String>,
196}
197#[derive(Clone, PartialEq, ::prost::Message)]
198pub struct StepErroredRequest {
199    #[prost(string, optional, tag = "1")]
200    pub error_reason: ::core::option::Option<::prost::alloc::string::String>,
201}
202#[derive(Clone, PartialEq, ::prost::Message)]
203pub struct TargetStepStateRequest {
204    #[prost(oneof = "target_step_state_request::TargetState", tags = "1, 2, 3, 4")]
205    pub target_state: ::core::option::Option<target_step_state_request::TargetState>,
206}
207/// Nested message and enum types in `TargetStepStateRequest`.
208pub mod target_step_state_request {
209    #[derive(Clone, PartialEq, ::prost::Oneof)]
210    pub enum TargetState {
211        #[prost(message, tag = "1")]
212        InProgress(super::StepInProgressRequest),
213        #[prost(message, tag = "2")]
214        Submitted(super::StepSubmittedRequest),
215        #[prost(message, tag = "3")]
216        Skipped(super::StepSkippedRequest),
217        #[prost(message, tag = "4")]
218        Errored(super::StepErroredRequest),
219    }
220}
221#[derive(Clone, PartialEq, ::prost::Message)]
222pub struct ProcedureAsyncTask {
223    #[prost(oneof = "procedure_async_task::Task", tags = "1, 2")]
224    pub task: ::core::option::Option<procedure_async_task::Task>,
225}
226/// Nested message and enum types in `ProcedureAsyncTask`.
227pub mod procedure_async_task {
228    #[derive(Clone, PartialEq, ::prost::Oneof)]
229    pub enum Task {
230        #[prost(message, tag = "1")]
231        ConditionObservation(super::ConditionObservation),
232        #[prost(message, tag = "2")]
233        CompletionActionExecution(super::CompletionActionExecution),
234    }
235}
236#[derive(Clone, PartialEq, ::prost::Message)]
237pub struct ConditionObservation {
238    #[prost(string, tag = "1")]
239    pub user_rid: ::prost::alloc::string::String,
240    #[prost(string, tag = "2")]
241    pub org_rid: ::prost::alloc::string::String,
242    #[prost(string, tag = "3")]
243    pub procedure_execution_rid: ::prost::alloc::string::String,
244    #[prost(string, tag = "4")]
245    pub step_id: ::prost::alloc::string::String,
246    #[prost(message, optional, tag = "5")]
247    pub success_condition: ::core::option::Option<super::super::v1::SuccessCondition>,
248}
249#[derive(Clone, PartialEq, ::prost::Message)]
250pub struct CompletionActionExecution {
251    #[prost(string, tag = "1")]
252    pub user_rid: ::prost::alloc::string::String,
253    #[prost(string, tag = "2")]
254    pub org_rid: ::prost::alloc::string::String,
255    #[prost(string, tag = "3")]
256    pub procedure_execution_rid: ::prost::alloc::string::String,
257    #[prost(string, tag = "4")]
258    pub procedure_rid: ::prost::alloc::string::String,
259    #[prost(string, tag = "5")]
260    pub workspace_rid: ::prost::alloc::string::String,
261    #[prost(string, tag = "6")]
262    pub step_id: ::prost::alloc::string::String,
263    #[prost(message, repeated, tag = "7")]
264    pub completion_action_configs: ::prost::alloc::vec::Vec<
265        super::super::v1::CompletionActionConfig,
266    >,
267}
268#[derive(Clone, PartialEq, ::prost::Message)]
269pub struct SuccessConditionStatus {
270    #[prost(oneof = "success_condition_status::Condition", tags = "1, 6, 7, 9, 10")]
271    pub condition: ::core::option::Option<success_condition_status::Condition>,
272    #[prost(oneof = "success_condition_status::Status", tags = "2, 3, 4, 5, 8")]
273    pub status: ::core::option::Option<success_condition_status::Status>,
274}
275/// Nested message and enum types in `SuccessConditionStatus`.
276pub mod success_condition_status {
277    #[derive(Clone, PartialEq, ::prost::Oneof)]
278    pub enum Condition {
279        #[prost(message, tag = "1")]
280        And(super::AndSuccessCondition),
281        #[prost(message, tag = "6")]
282        Timer(super::super::super::v1::TimerSuccessCondition),
283        #[prost(message, tag = "7")]
284        IngestJob(super::super::super::v1::IngestJobSuccessCondition),
285        #[prost(message, tag = "9")]
286        ChannelValidation(super::ChannelValidationSuccessConditionStatus),
287        #[prost(message, tag = "10")]
288        Webhook(super::WebhookConditionStatus),
289    }
290    #[derive(Clone, PartialEq, ::prost::Oneof)]
291    pub enum Status {
292        #[prost(message, tag = "2")]
293        InProgress(super::SuccessConditionInProgress),
294        #[prost(message, tag = "3")]
295        Satisfied(super::SuccessConditionSatisfied),
296        #[prost(message, tag = "4")]
297        Failed(super::SuccessConditionFailed),
298        #[prost(message, tag = "5")]
299        Canceled(super::SuccessConditionCanceled),
300        #[prost(message, tag = "8")]
301        Submitted(super::SuccessConditionSubmitted),
302    }
303}
304#[derive(Clone, PartialEq, ::prost::Message)]
305pub struct ChannelValidationSuccessConditionStatus {
306    #[prost(message, optional, tag = "9")]
307    pub condition: ::core::option::Option<
308        super::super::v1::ChannelValidationSuccessCondition,
309    >,
310    #[prost(int32, optional, tag = "2")]
311    pub consecutive_matches: ::core::option::Option<i32>,
312    #[prost(message, optional, tag = "3")]
313    pub first_satisfied_at: ::core::option::Option<
314        super::super::super::super::google::protobuf::Timestamp,
315    >,
316}
317#[derive(Clone, PartialEq, ::prost::Message)]
318pub struct WebhookConditionStatus {
319    #[prost(message, optional, tag = "9")]
320    pub condition: ::core::option::Option<super::super::v1::WebhookSuccessCondition>,
321    #[prost(int32, tag = "1")]
322    pub delivery_attempts: i32,
323    #[prost(message, optional, tag = "2")]
324    pub last_attempt_time: ::core::option::Option<
325        super::super::super::super::google::protobuf::Timestamp,
326    >,
327    #[prost(message, optional, tag = "3")]
328    pub next_retry_time: ::core::option::Option<
329        super::super::super::super::google::protobuf::Timestamp,
330    >,
331    #[prost(string, optional, tag = "4")]
332    pub last_delivery_id: ::core::option::Option<::prost::alloc::string::String>,
333    #[prost(int32, optional, tag = "5")]
334    pub last_http_status: ::core::option::Option<i32>,
335    #[prost(string, optional, tag = "6")]
336    pub last_error_message: ::core::option::Option<::prost::alloc::string::String>,
337    #[prost(message, optional, tag = "7")]
338    pub started_at: ::core::option::Option<
339        super::super::super::super::google::protobuf::Timestamp,
340    >,
341    #[prost(enumeration = "WebhookFailureReason", optional, tag = "8")]
342    pub terminal_failure_reason: ::core::option::Option<i32>,
343}
344#[derive(Clone, PartialEq, ::prost::Message)]
345pub struct AndSuccessCondition {
346    #[prost(message, repeated, tag = "1")]
347    pub conditions: ::prost::alloc::vec::Vec<SuccessConditionStatus>,
348}
349#[derive(Clone, Copy, PartialEq, ::prost::Message)]
350pub struct SuccessConditionSubmitted {
351    #[prost(message, optional, tag = "1")]
352    pub submitted_at: ::core::option::Option<
353        super::super::super::super::google::protobuf::Timestamp,
354    >,
355}
356#[derive(Clone, Copy, PartialEq, ::prost::Message)]
357pub struct SuccessConditionInProgress {
358    #[prost(message, optional, tag = "1")]
359    pub started_at: ::core::option::Option<
360        super::super::super::super::google::protobuf::Timestamp,
361    >,
362}
363#[derive(Clone, Copy, PartialEq, ::prost::Message)]
364pub struct SuccessConditionSatisfied {
365    #[prost(message, optional, tag = "1")]
366    pub started_at: ::core::option::Option<
367        super::super::super::super::google::protobuf::Timestamp,
368    >,
369    #[prost(message, optional, tag = "2")]
370    pub satisfied_at: ::core::option::Option<
371        super::super::super::super::google::protobuf::Timestamp,
372    >,
373}
374#[derive(Clone, PartialEq, ::prost::Message)]
375pub struct SuccessConditionFailed {
376    #[prost(message, optional, tag = "1")]
377    pub started_at: ::core::option::Option<
378        super::super::super::super::google::protobuf::Timestamp,
379    >,
380    #[prost(message, optional, tag = "2")]
381    pub failed_at: ::core::option::Option<
382        super::super::super::super::google::protobuf::Timestamp,
383    >,
384    #[prost(string, tag = "3")]
385    pub failure_reason: ::prost::alloc::string::String,
386}
387#[derive(Clone, Copy, PartialEq, ::prost::Message)]
388pub struct SuccessConditionCanceled {
389    #[prost(message, optional, tag = "1")]
390    pub started_at: ::core::option::Option<
391        super::super::super::super::google::protobuf::Timestamp,
392    >,
393    #[prost(message, optional, tag = "2")]
394    pub canceled_at: ::core::option::Option<
395        super::super::super::super::google::protobuf::Timestamp,
396    >,
397}
398#[derive(Clone, PartialEq, ::prost::Message)]
399pub struct ChannelCaptureStatus {
400    #[prost(string, tag = "1")]
401    pub output_field_id: ::prost::alloc::string::String,
402    #[prost(enumeration = "super::super::v1::CaptureMoment", tag = "2")]
403    pub capture_moment: i32,
404    #[prost(oneof = "channel_capture_status::Status", tags = "3, 4, 5, 6")]
405    pub status: ::core::option::Option<channel_capture_status::Status>,
406}
407/// Nested message and enum types in `ChannelCaptureStatus`.
408pub mod channel_capture_status {
409    #[derive(Clone, PartialEq, ::prost::Oneof)]
410    pub enum Status {
411        #[prost(message, tag = "3")]
412        InProgress(super::ChannelCaptureInProgress),
413        #[prost(message, tag = "4")]
414        Succeeded(super::ChannelCaptureSucceeded),
415        #[prost(message, tag = "5")]
416        Failed(super::ChannelCaptureFailed),
417        #[prost(message, tag = "6")]
418        Skipped(super::ChannelCaptureSkipped),
419    }
420}
421#[derive(Clone, Copy, PartialEq, ::prost::Message)]
422pub struct ChannelCaptureInProgress {
423    #[prost(message, optional, tag = "1")]
424    pub started_at: ::core::option::Option<
425        super::super::super::super::google::protobuf::Timestamp,
426    >,
427}
428#[derive(Clone, PartialEq, ::prost::Message)]
429pub struct ChannelCaptureSucceeded {
430    #[prost(message, optional, tag = "1")]
431    pub started_at: ::core::option::Option<
432        super::super::super::super::google::protobuf::Timestamp,
433    >,
434    #[prost(message, optional, tag = "2")]
435    pub captured_at: ::core::option::Option<
436        super::super::super::super::google::protobuf::Timestamp,
437    >,
438    #[prost(message, optional, tag = "3")]
439    pub value: ::core::option::Option<CapturedValue>,
440}
441#[derive(Clone, PartialEq, ::prost::Message)]
442pub struct CapturedValue {
443    #[prost(oneof = "captured_value::Value", tags = "1, 2, 3, 4")]
444    pub value: ::core::option::Option<captured_value::Value>,
445}
446/// Nested message and enum types in `CapturedValue`.
447pub mod captured_value {
448    #[derive(Clone, PartialEq, ::prost::Oneof)]
449    pub enum Value {
450        #[prost(double, tag = "1")]
451        DoubleValue(f64),
452        #[prost(int64, tag = "2")]
453        IntValue(i64),
454        #[prost(bool, tag = "3")]
455        BoolValue(bool),
456        #[prost(string, tag = "4")]
457        StringValue(::prost::alloc::string::String),
458    }
459}
460#[derive(Clone, PartialEq, ::prost::Message)]
461pub struct ChannelCaptureFailed {
462    #[prost(message, optional, tag = "1")]
463    pub started_at: ::core::option::Option<
464        super::super::super::super::google::protobuf::Timestamp,
465    >,
466    #[prost(message, optional, tag = "2")]
467    pub failed_at: ::core::option::Option<
468        super::super::super::super::google::protobuf::Timestamp,
469    >,
470    #[prost(enumeration = "ChannelCaptureFailureReason", tag = "3")]
471    pub reason: i32,
472    #[prost(string, tag = "4")]
473    pub error_message: ::prost::alloc::string::String,
474}
475#[derive(Clone, Copy, PartialEq, ::prost::Message)]
476pub struct ChannelCaptureSkipped {
477    #[prost(message, optional, tag = "1")]
478    pub skipped_at: ::core::option::Option<
479        super::super::super::super::google::protobuf::Timestamp,
480    >,
481    #[prost(enumeration = "ChannelCaptureSkipReason", tag = "2")]
482    pub reason: i32,
483}
484#[derive(Clone, PartialEq, ::prost::Message)]
485pub struct CompletionActionStatus {
486    #[prost(message, optional, tag = "1")]
487    pub state: ::core::option::Option<CompletionActionState>,
488    #[prost(oneof = "completion_action_status::Result", tags = "2, 3, 4, 5, 6")]
489    pub result: ::core::option::Option<completion_action_status::Result>,
490}
491/// Nested message and enum types in `CompletionActionStatus`.
492pub mod completion_action_status {
493    #[derive(Clone, PartialEq, ::prost::Oneof)]
494    pub enum Result {
495        #[prost(message, tag = "2")]
496        CreateEvent(super::CreateEventResult),
497        #[prost(message, tag = "3")]
498        CreateRun(super::CreateRunResult),
499        #[prost(message, tag = "4")]
500        ApplyWorkbookTemplates(super::ApplyWorkbookTemplatesResult),
501        #[prost(message, tag = "5")]
502        ApplyChecklists(super::ApplyChecklistsResult),
503        #[prost(message, tag = "6")]
504        UpdateRun(super::UpdateRunResult),
505    }
506}
507#[derive(Clone, PartialEq, ::prost::Message)]
508pub struct CreateEventResult {
509    #[prost(string, tag = "1")]
510    pub event_rid: ::prost::alloc::string::String,
511}
512#[derive(Clone, PartialEq, ::prost::Message)]
513pub struct CreateRunResult {
514    #[prost(string, tag = "1")]
515    pub run_rid: ::prost::alloc::string::String,
516}
517#[derive(Clone, PartialEq, ::prost::Message)]
518pub struct ApplyWorkbookTemplatesResult {
519    #[prost(string, repeated, tag = "1")]
520    pub workbook_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
521}
522#[derive(Clone, PartialEq, ::prost::Message)]
523pub struct ApplyChecklistsResult {
524    #[prost(string, repeated, tag = "1")]
525    pub data_review_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
526}
527#[derive(Clone, PartialEq, ::prost::Message)]
528pub struct UpdateRunResult {
529    #[prost(string, repeated, tag = "1")]
530    pub run_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
531}
532#[derive(Clone, PartialEq, ::prost::Message)]
533pub struct CompletionActionState {
534    #[prost(oneof = "completion_action_state::State", tags = "1, 2, 3, 4")]
535    pub state: ::core::option::Option<completion_action_state::State>,
536}
537/// Nested message and enum types in `CompletionActionState`.
538pub mod completion_action_state {
539    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
540    pub struct NotRun {}
541    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
542    pub struct Succeeded {}
543    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
544    pub struct InProgress {}
545    #[derive(Clone, PartialEq, ::prost::Oneof)]
546    pub enum State {
547        #[prost(message, tag = "1")]
548        NotRun(NotRun),
549        #[prost(message, tag = "2")]
550        Succeeded(Succeeded),
551        #[prost(string, tag = "3")]
552        Error(::prost::alloc::string::String),
553        #[prost(message, tag = "4")]
554        InProgress(InProgress),
555    }
556}
557#[derive(Clone, PartialEq, ::prost::Message)]
558pub struct StepContentValue {
559    #[prost(oneof = "step_content_value::Value", tags = "1, 2, 3, 4")]
560    pub value: ::core::option::Option<step_content_value::Value>,
561}
562/// Nested message and enum types in `StepContentValue`.
563pub mod step_content_value {
564    #[derive(Clone, PartialEq, ::prost::Oneof)]
565    pub enum Value {
566        #[prost(message, tag = "1")]
567        Form(super::FormStepValue),
568        #[prost(message, tag = "2")]
569        StartIngest(super::StartIngestStepValue),
570        #[prost(message, tag = "3")]
571        SelectOrCreateAsset(super::SelectOrCreateAssetStepValue),
572        #[prost(message, tag = "4")]
573        Wait(super::WaitStepValue),
574    }
575}
576#[derive(Clone, Copy, PartialEq, ::prost::Message)]
577pub struct WaitStepValue {}
578#[derive(Clone, PartialEq, ::prost::Message)]
579pub struct FormStepValue {
580    #[prost(message, repeated, tag = "1")]
581    pub fields: ::prost::alloc::vec::Vec<FormFieldValue>,
582}
583#[derive(Clone, PartialEq, ::prost::Message)]
584pub struct StartIngestStepValue {
585    #[prost(string, optional, tag = "1")]
586    pub ingest_job_rid: ::core::option::Option<::prost::alloc::string::String>,
587}
588#[derive(Clone, PartialEq, ::prost::Message)]
589pub struct SelectOrCreateAssetStepValue {
590    #[prost(message, optional, tag = "1")]
591    pub asset_reference: ::core::option::Option<super::super::v1::AssetReference>,
592}
593#[derive(Clone, PartialEq, ::prost::Message)]
594pub struct FormFieldValue {
595    #[prost(oneof = "form_field_value::Field", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9")]
596    pub field: ::core::option::Option<form_field_value::Field>,
597}
598/// Nested message and enum types in `FormFieldValue`.
599pub mod form_field_value {
600    #[derive(Clone, PartialEq, ::prost::Oneof)]
601    pub enum Field {
602        #[prost(message, tag = "1")]
603        Asset(super::AssetFieldValue),
604        #[prost(message, tag = "2")]
605        Checkbox(super::CheckboxFieldValue),
606        #[prost(message, tag = "3")]
607        Text(super::TextFieldValue),
608        #[prost(message, tag = "4")]
609        Int(super::IntFieldValue),
610        #[prost(message, tag = "5")]
611        Double(super::DoubleFieldValue),
612        #[prost(message, tag = "6")]
613        SingleEnum(super::SingleEnumFieldValue),
614        #[prost(message, tag = "7")]
615        MultiEnum(super::MultiEnumFieldValue),
616        #[prost(message, tag = "8")]
617        FileUpload(super::FileUploadFieldValue),
618        #[prost(message, tag = "9")]
619        MultiFileUpload(super::MultiFileUploadFieldValue),
620    }
621}
622#[derive(Clone, PartialEq, ::prost::Message)]
623pub struct AssetFieldValue {
624    #[prost(oneof = "asset_field_value::Asset", tags = "1")]
625    pub asset: ::core::option::Option<asset_field_value::Asset>,
626}
627/// Nested message and enum types in `AssetFieldValue`.
628pub mod asset_field_value {
629    #[derive(Clone, PartialEq, ::prost::Oneof)]
630    pub enum Asset {
631        #[prost(message, tag = "1")]
632        AssetReference(super::super::super::v1::AssetReference),
633    }
634}
635#[derive(Clone, Copy, PartialEq, ::prost::Message)]
636pub struct CheckboxFieldValue {
637    #[prost(bool, tag = "1")]
638    pub value: bool,
639}
640#[derive(Clone, PartialEq, ::prost::Message)]
641pub struct TextFieldValue {
642    #[prost(string, optional, tag = "1")]
643    pub value: ::core::option::Option<::prost::alloc::string::String>,
644}
645#[derive(Clone, Copy, PartialEq, ::prost::Message)]
646pub struct IntFieldValue {
647    #[prost(int64, optional, tag = "1")]
648    pub value: ::core::option::Option<i64>,
649}
650#[derive(Clone, Copy, PartialEq, ::prost::Message)]
651pub struct DoubleFieldValue {
652    #[prost(double, optional, tag = "1")]
653    pub value: ::core::option::Option<f64>,
654}
655#[derive(Clone, PartialEq, ::prost::Message)]
656pub struct SingleEnumFieldValue {
657    #[prost(string, optional, tag = "1")]
658    pub value: ::core::option::Option<::prost::alloc::string::String>,
659}
660#[derive(Clone, PartialEq, ::prost::Message)]
661pub struct MultiEnumFieldValue {
662    #[prost(string, repeated, tag = "1")]
663    pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
664}
665#[derive(Clone, PartialEq, ::prost::Message)]
666pub struct FileUploadFieldValue {
667    #[prost(oneof = "file_upload_field_value::UploadType", tags = "1")]
668    pub upload_type: ::core::option::Option<file_upload_field_value::UploadType>,
669}
670/// Nested message and enum types in `FileUploadFieldValue`.
671pub mod file_upload_field_value {
672    #[derive(Clone, PartialEq, ::prost::Oneof)]
673    pub enum UploadType {
674        #[prost(message, tag = "1")]
675        S3Upload(super::S3UploadFileValue),
676    }
677}
678#[derive(Clone, PartialEq, ::prost::Message)]
679pub struct S3UploadFileValue {
680    #[prost(string, tag = "1")]
681    pub s3_path: ::prost::alloc::string::String,
682    #[prost(string, tag = "2")]
683    pub file_name: ::prost::alloc::string::String,
684    #[prost(string, optional, tag = "3")]
685    pub file_type: ::core::option::Option<::prost::alloc::string::String>,
686}
687#[derive(Clone, PartialEq, ::prost::Message)]
688pub struct MultiFileUploadFieldValue {
689    #[prost(message, repeated, tag = "1")]
690    pub uploads: ::prost::alloc::vec::Vec<FileUploadFieldValue>,
691}
692#[derive(Clone, PartialEq, ::prost::Message)]
693pub struct ProcedureExecution {
694    #[prost(string, tag = "1")]
695    pub rid: ::prost::alloc::string::String,
696    #[prost(message, optional, tag = "2")]
697    pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
698    #[prost(message, optional, tag = "3")]
699    pub state: ::core::option::Option<ProcedureExecutionState>,
700}
701#[derive(Clone, PartialEq, ::prost::Message)]
702pub struct ProcedureExecutionMetadata {
703    #[prost(string, tag = "1")]
704    pub rid: ::prost::alloc::string::String,
705    #[prost(string, tag = "2")]
706    pub procedure_rid: ::prost::alloc::string::String,
707    #[prost(string, tag = "3")]
708    pub procedure_commit_id: ::prost::alloc::string::String,
709    #[prost(string, tag = "4")]
710    pub title: ::prost::alloc::string::String,
711    #[prost(string, optional, tag = "5")]
712    pub description: ::core::option::Option<::prost::alloc::string::String>,
713    #[prost(string, repeated, tag = "6")]
714    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
715    #[prost(map = "string, string", tag = "7")]
716    pub properties: ::std::collections::HashMap<
717        ::prost::alloc::string::String,
718        ::prost::alloc::string::String,
719    >,
720    #[prost(string, tag = "8")]
721    pub created_by: ::prost::alloc::string::String,
722    #[prost(message, optional, tag = "9")]
723    pub created_at: ::core::option::Option<
724        super::super::super::super::google::protobuf::Timestamp,
725    >,
726    #[prost(string, tag = "10")]
727    pub updated_by: ::prost::alloc::string::String,
728    #[prost(message, optional, tag = "11")]
729    pub updated_at: ::core::option::Option<
730        super::super::super::super::google::protobuf::Timestamp,
731    >,
732    #[prost(message, optional, tag = "12")]
733    pub started_at: ::core::option::Option<
734        super::super::super::super::google::protobuf::Timestamp,
735    >,
736    #[prost(string, optional, tag = "13")]
737    pub started_by: ::core::option::Option<::prost::alloc::string::String>,
738    #[prost(message, optional, tag = "14")]
739    pub finished_at: ::core::option::Option<
740        super::super::super::super::google::protobuf::Timestamp,
741    >,
742    #[prost(string, optional, tag = "15")]
743    pub finished_by: ::core::option::Option<::prost::alloc::string::String>,
744    #[prost(message, optional, tag = "16")]
745    pub aborted_at: ::core::option::Option<
746        super::super::super::super::google::protobuf::Timestamp,
747    >,
748    #[prost(string, optional, tag = "17")]
749    pub aborted_by: ::core::option::Option<::prost::alloc::string::String>,
750    #[prost(message, optional, tag = "18")]
751    pub failed_at: ::core::option::Option<
752        super::super::super::super::google::protobuf::Timestamp,
753    >,
754    #[prost(string, optional, tag = "19")]
755    pub failed_by: ::core::option::Option<::prost::alloc::string::String>,
756    #[prost(string, optional, tag = "20")]
757    pub failed_reason: ::core::option::Option<::prost::alloc::string::String>,
758    #[prost(string, repeated, tag = "21")]
759    pub asset_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
760    #[prost(bool, tag = "22")]
761    pub is_archived: bool,
762}
763#[derive(Clone, PartialEq, ::prost::Message)]
764pub struct ProcedureExecutionState {
765    #[prost(map = "string, message", tag = "1")]
766    pub global_fields: ::std::collections::HashMap<
767        ::prost::alloc::string::String,
768        FieldOutput,
769    >,
770    #[prost(map = "string, message", tag = "2")]
771    pub nodes: ::std::collections::HashMap<
772        ::prost::alloc::string::String,
773        ProcedureExecutionNode,
774    >,
775    #[prost(map = "string, message", tag = "3")]
776    pub section_edges: ::std::collections::HashMap<
777        ::prost::alloc::string::String,
778        super::super::v1::NodeList,
779    >,
780    #[prost(map = "string, message", tag = "4")]
781    pub step_edges: ::std::collections::HashMap<
782        ::prost::alloc::string::String,
783        super::super::v1::NodeList,
784    >,
785}
786#[derive(Clone, PartialEq, ::prost::Message)]
787pub struct Strings {
788    #[prost(string, repeated, tag = "1")]
789    pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
790}
791#[derive(Clone, PartialEq, ::prost::Message)]
792pub struct FieldOutput {
793    #[prost(oneof = "field_output::Output", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10")]
794    pub output: ::core::option::Option<field_output::Output>,
795}
796/// Nested message and enum types in `FieldOutput`.
797pub mod field_output {
798    #[derive(Clone, PartialEq, ::prost::Oneof)]
799    pub enum Output {
800        #[prost(string, tag = "1")]
801        AssetRid(::prost::alloc::string::String),
802        #[prost(string, tag = "2")]
803        StringValue(::prost::alloc::string::String),
804        #[prost(double, tag = "3")]
805        DoubleValue(f64),
806        #[prost(bool, tag = "4")]
807        BooleanValue(bool),
808        #[prost(int64, tag = "5")]
809        IntValue(i64),
810        #[prost(message, tag = "6")]
811        StringsValue(super::Strings),
812        #[prost(string, tag = "7")]
813        IngestJobRid(::prost::alloc::string::String),
814        #[prost(string, tag = "8")]
815        RunRid(::prost::alloc::string::String),
816        #[prost(message, tag = "9")]
817        FileUploadValue(super::FileUploadFieldValue),
818        #[prost(message, tag = "10")]
819        MultiFileUploadValue(super::MultiFileUploadFieldValue),
820    }
821}
822#[derive(Clone, PartialEq, ::prost::Message)]
823pub struct CreateProcedureExecutionRequest {
824    #[prost(string, tag = "1")]
825    pub procedure_rid: ::prost::alloc::string::String,
826    #[prost(string, tag = "2")]
827    pub procedure_commit_id: ::prost::alloc::string::String,
828    #[prost(string, tag = "3")]
829    pub title: ::prost::alloc::string::String,
830    #[prost(string, optional, tag = "4")]
831    pub description: ::core::option::Option<::prost::alloc::string::String>,
832    #[prost(bool, optional, tag = "5")]
833    pub start_immediately: ::core::option::Option<bool>,
834}
835#[derive(Clone, PartialEq, ::prost::Message)]
836pub struct CreateProcedureExecutionResponse {
837    #[prost(message, optional, tag = "1")]
838    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
839}
840#[derive(Clone, PartialEq, ::prost::Message)]
841pub struct GetProcedureExecutionRequest {
842    #[prost(string, tag = "1")]
843    pub procedure_execution_rid: ::prost::alloc::string::String,
844    #[prost(bool, tag = "2")]
845    pub include_display_graph: bool,
846}
847#[derive(Clone, PartialEq, ::prost::Message)]
848pub struct GetProcedureExecutionResponse {
849    #[prost(message, optional, tag = "1")]
850    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
851    #[prost(message, optional, tag = "2")]
852    pub display_graph: ::core::option::Option<super::super::v1::ProcedureDisplayGraph>,
853}
854#[derive(Clone, PartialEq, ::prost::Message)]
855pub struct UpdateProcedureExecutionMetadataRequest {
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}
871#[derive(Clone, PartialEq, ::prost::Message)]
872pub struct UpdateProcedureExecutionMetadataResponse {
873    #[prost(message, optional, tag = "1")]
874    pub metadata: ::core::option::Option<ProcedureExecutionMetadata>,
875}
876#[derive(Clone, PartialEq, ::prost::Message)]
877pub struct UpdateProcedureExecutionRequest {
878    #[prost(string, tag = "1")]
879    pub procedure_execution_rid: ::prost::alloc::string::String,
880    #[prost(string, optional, tag = "2")]
881    pub title: ::core::option::Option<::prost::alloc::string::String>,
882    #[prost(string, optional, tag = "3")]
883    pub description: ::core::option::Option<::prost::alloc::string::String>,
884    #[prost(string, optional, tag = "4")]
885    pub commit_id: ::core::option::Option<::prost::alloc::string::String>,
886    #[prost(message, optional, tag = "5")]
887    pub labels: ::core::option::Option<super::super::super::types::LabelUpdateWrapper>,
888    #[prost(message, optional, tag = "6")]
889    pub properties: ::core::option::Option<
890        super::super::super::types::PropertyUpdateWrapper,
891    >,
892    #[prost(message, optional, tag = "7")]
893    pub state: ::core::option::Option<ProcedureExecutionState>,
894    #[prost(bool, optional, tag = "8")]
895    pub is_aborted: ::core::option::Option<bool>,
896    #[prost(message, optional, tag = "9")]
897    pub started_at: ::core::option::Option<
898        super::super::super::super::google::protobuf::Timestamp,
899    >,
900    #[prost(message, optional, tag = "10")]
901    pub finished_at: ::core::option::Option<
902        super::super::super::super::google::protobuf::Timestamp,
903    >,
904}
905#[derive(Clone, PartialEq, ::prost::Message)]
906pub struct UpdateProcedureExecutionResponse {
907    #[prost(message, optional, tag = "1")]
908    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
909}
910#[derive(Clone, PartialEq, ::prost::Message)]
911pub struct UpdateStepRequest {
912    #[prost(string, tag = "1")]
913    pub procedure_execution_rid: ::prost::alloc::string::String,
914    #[prost(string, tag = "2")]
915    pub step_id: ::prost::alloc::string::String,
916    #[prost(message, optional, tag = "3")]
917    pub value: ::core::option::Option<StepContentValue>,
918    #[prost(message, optional, tag = "4")]
919    pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
920    #[prost(message, optional, tag = "5")]
921    pub target_state: ::core::option::Option<TargetStepStateRequest>,
922}
923#[derive(Clone, PartialEq, ::prost::Message)]
924pub struct UpdateStepResponse {
925    #[prost(message, optional, tag = "1")]
926    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
927}
928#[derive(Clone, PartialEq, ::prost::Message)]
929pub struct UpdateStepSuccessConditionStatusRequest {
930    #[prost(string, tag = "1")]
931    pub procedure_execution_rid: ::prost::alloc::string::String,
932    #[prost(string, tag = "2")]
933    pub step_id: ::prost::alloc::string::String,
934    #[prost(message, optional, tag = "3")]
935    pub success_condition_status: ::core::option::Option<SuccessConditionStatus>,
936}
937#[derive(Clone, PartialEq, ::prost::Message)]
938pub struct UpdateStepSuccessConditionStatusResponse {
939    #[prost(message, optional, tag = "1")]
940    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
941}
942#[derive(Clone, PartialEq, ::prost::Message)]
943pub struct UpdateStepChannelCaptureStatusRequest {
944    #[prost(string, tag = "1")]
945    pub procedure_execution_rid: ::prost::alloc::string::String,
946    #[prost(string, tag = "2")]
947    pub step_id: ::prost::alloc::string::String,
948    #[prost(message, optional, tag = "3")]
949    pub channel_capture_status: ::core::option::Option<ChannelCaptureStatus>,
950}
951#[derive(Clone, PartialEq, ::prost::Message)]
952pub struct UpdateStepChannelCaptureStatusResponse {
953    #[prost(message, optional, tag = "1")]
954    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
955}
956#[derive(Clone, PartialEq, ::prost::Message)]
957pub struct UpdateStepCompletionActionStatusRequest {
958    #[prost(string, tag = "1")]
959    pub procedure_execution_rid: ::prost::alloc::string::String,
960    #[prost(string, tag = "2")]
961    pub step_id: ::prost::alloc::string::String,
962    #[prost(message, repeated, tag = "3")]
963    pub completion_action_statuses: ::prost::alloc::vec::Vec<CompletionActionStatus>,
964}
965#[derive(Clone, PartialEq, ::prost::Message)]
966pub struct UpdateStepCompletionActionStatusResponse {
967    #[prost(message, optional, tag = "1")]
968    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
969}
970#[derive(Clone, PartialEq, ::prost::Message)]
971pub struct RepeatStepRequest {
972    #[prost(string, tag = "1")]
973    pub procedure_execution_rid: ::prost::alloc::string::String,
974    #[prost(string, tag = "2")]
975    pub step_id: ::prost::alloc::string::String,
976    #[prost(enumeration = "RepeatStepBehavior", tag = "6")]
977    pub behavior: i32,
978    #[prost(message, optional, tag = "3")]
979    pub value: ::core::option::Option<StepContentValue>,
980    #[prost(message, optional, tag = "4")]
981    pub auto_proceed_config: ::core::option::Option<super::super::v1::AutoProceedConfig>,
982    #[prost(message, optional, tag = "5")]
983    pub target_state: ::core::option::Option<TargetStepStateRequest>,
984}
985#[derive(Clone, PartialEq, ::prost::Message)]
986pub struct RepeatStepResponse {
987    #[prost(message, optional, tag = "1")]
988    pub procedure_execution: ::core::option::Option<ProcedureExecution>,
989}
990#[derive(Clone, PartialEq, ::prost::Message)]
991pub struct ProcedureExecutionSearchQuery {
992    #[prost(
993        oneof = "procedure_execution_search_query::Query",
994        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12"
995    )]
996    pub query: ::core::option::Option<procedure_execution_search_query::Query>,
997}
998/// Nested message and enum types in `ProcedureExecutionSearchQuery`.
999pub mod procedure_execution_search_query {
1000    #[derive(Clone, PartialEq, ::prost::Message)]
1001    pub struct ProcedureExecutionSearchAndQuery {
1002        #[prost(message, repeated, tag = "1")]
1003        pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
1004    }
1005    #[derive(Clone, PartialEq, ::prost::Message)]
1006    pub struct ProcedureExecutionSearchOrQuery {
1007        #[prost(message, repeated, tag = "1")]
1008        pub queries: ::prost::alloc::vec::Vec<super::ProcedureExecutionSearchQuery>,
1009    }
1010    #[derive(Clone, PartialEq, ::prost::Message)]
1011    pub struct AssetsFilter {
1012        #[prost(string, repeated, tag = "1")]
1013        pub asset_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1014        #[prost(enumeration = "assets_filter::Operator", tag = "2")]
1015        pub operator: i32,
1016    }
1017    /// Nested message and enum types in `AssetsFilter`.
1018    pub mod assets_filter {
1019        #[derive(
1020            Clone,
1021            Copy,
1022            Debug,
1023            PartialEq,
1024            Eq,
1025            Hash,
1026            PartialOrd,
1027            Ord,
1028            ::prost::Enumeration
1029        )]
1030        #[repr(i32)]
1031        pub enum Operator {
1032            Unspecified = 0,
1033            Or = 1,
1034            And = 2,
1035        }
1036        impl Operator {
1037            /// String value of the enum field names used in the ProtoBuf definition.
1038            ///
1039            /// The values are not transformed in any way and thus are considered stable
1040            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1041            pub fn as_str_name(&self) -> &'static str {
1042                match self {
1043                    Self::Unspecified => "OPERATOR_UNSPECIFIED",
1044                    Self::Or => "OPERATOR_OR",
1045                    Self::And => "OPERATOR_AND",
1046                }
1047            }
1048            /// Creates an enum from field names used in the ProtoBuf definition.
1049            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1050                match value {
1051                    "OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
1052                    "OPERATOR_OR" => Some(Self::Or),
1053                    "OPERATOR_AND" => Some(Self::And),
1054                    _ => None,
1055                }
1056            }
1057        }
1058    }
1059    #[derive(Clone, PartialEq, ::prost::Oneof)]
1060    pub enum Query {
1061        #[prost(string, tag = "1")]
1062        SearchText(::prost::alloc::string::String),
1063        #[prost(string, tag = "2")]
1064        Label(::prost::alloc::string::String),
1065        #[prost(message, tag = "3")]
1066        Property(super::super::super::super::types::Property),
1067        #[prost(message, tag = "4")]
1068        And(ProcedureExecutionSearchAndQuery),
1069        #[prost(message, tag = "5")]
1070        Or(ProcedureExecutionSearchOrQuery),
1071        #[prost(string, tag = "6")]
1072        Workspace(::prost::alloc::string::String),
1073        #[prost(string, tag = "7")]
1074        ProcedureRid(::prost::alloc::string::String),
1075        #[prost(string, tag = "8")]
1076        CommitId(::prost::alloc::string::String),
1077        #[prost(string, tag = "9")]
1078        CreatedBy(::prost::alloc::string::String),
1079        #[prost(enumeration = "super::ProcedureExecutionProgressStatus", tag = "10")]
1080        ProgressStatus(i32),
1081        #[prost(message, tag = "11")]
1082        AssetsFilter(AssetsFilter),
1083        #[prost(bool, tag = "12")]
1084        IsArchived(bool),
1085    }
1086}
1087#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1088pub struct ProcedureExecutionSortOptions {
1089    #[prost(bool, optional, tag = "1")]
1090    pub is_descending: ::core::option::Option<bool>,
1091    #[prost(enumeration = "SearchProcedureExecutionsSortField", tag = "2")]
1092    pub sort_field: i32,
1093}
1094#[derive(Clone, PartialEq, ::prost::Message)]
1095pub struct SearchProcedureExecutionsRequest {
1096    #[prost(message, optional, tag = "1")]
1097    pub query: ::core::option::Option<ProcedureExecutionSearchQuery>,
1098    #[prost(message, optional, tag = "2")]
1099    pub sort_options: ::core::option::Option<ProcedureExecutionSortOptions>,
1100    #[prost(int32, optional, tag = "3")]
1101    pub page_size: ::core::option::Option<i32>,
1102    #[prost(string, optional, tag = "4")]
1103    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1104}
1105#[derive(Clone, PartialEq, ::prost::Message)]
1106pub struct SearchProcedureExecutionsResponse {
1107    #[prost(message, repeated, tag = "1")]
1108    pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
1109    #[prost(string, optional, tag = "2")]
1110    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1111}
1112#[derive(Clone, PartialEq, ::prost::Message)]
1113pub struct BatchGetProcedureExecutionMetadataRequest {
1114    #[prost(string, repeated, tag = "1")]
1115    pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1116        ::prost::alloc::string::String,
1117    >,
1118}
1119#[derive(Clone, PartialEq, ::prost::Message)]
1120pub struct BatchGetProcedureExecutionMetadataResponse {
1121    #[prost(message, repeated, tag = "1")]
1122    pub procedure_executions: ::prost::alloc::vec::Vec<ProcedureExecutionMetadata>,
1123}
1124#[derive(Clone, PartialEq, ::prost::Message)]
1125pub struct BatchArchiveProcedureExecutionsRequest {
1126    #[prost(string, repeated, tag = "1")]
1127    pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1128        ::prost::alloc::string::String,
1129    >,
1130}
1131#[derive(Clone, PartialEq, ::prost::Message)]
1132pub struct BatchArchiveProcedureExecutionsResponse {
1133    #[prost(string, repeated, tag = "1")]
1134    pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1135        ::prost::alloc::string::String,
1136    >,
1137}
1138#[derive(Clone, PartialEq, ::prost::Message)]
1139pub struct BatchUnarchiveProcedureExecutionsRequest {
1140    #[prost(string, repeated, tag = "1")]
1141    pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1142        ::prost::alloc::string::String,
1143    >,
1144}
1145#[derive(Clone, PartialEq, ::prost::Message)]
1146pub struct BatchUnarchiveProcedureExecutionsResponse {
1147    #[prost(string, repeated, tag = "1")]
1148    pub procedure_execution_rids: ::prost::alloc::vec::Vec<
1149        ::prost::alloc::string::String,
1150    >,
1151}
1152#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1153#[repr(i32)]
1154pub enum WebhookFailureReason {
1155    Unspecified = 0,
1156    ClientError = 1,
1157    ServerErrorMaxRetriesExceeded = 2,
1158    TimeoutMaxRetriesExceeded = 3,
1159    OverallTimeoutExceeded = 4,
1160    NetworkErrorMaxRetriesExceeded = 5,
1161    PayloadError = 6,
1162    RedirectLoop = 7,
1163    IntegrationConfigError = 8,
1164}
1165impl WebhookFailureReason {
1166    /// String value of the enum field names used in the ProtoBuf definition.
1167    ///
1168    /// The values are not transformed in any way and thus are considered stable
1169    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1170    pub fn as_str_name(&self) -> &'static str {
1171        match self {
1172            Self::Unspecified => "WEBHOOK_FAILURE_REASON_UNSPECIFIED",
1173            Self::ClientError => "WEBHOOK_FAILURE_REASON_CLIENT_ERROR",
1174            Self::ServerErrorMaxRetriesExceeded => {
1175                "WEBHOOK_FAILURE_REASON_SERVER_ERROR_MAX_RETRIES_EXCEEDED"
1176            }
1177            Self::TimeoutMaxRetriesExceeded => {
1178                "WEBHOOK_FAILURE_REASON_TIMEOUT_MAX_RETRIES_EXCEEDED"
1179            }
1180            Self::OverallTimeoutExceeded => {
1181                "WEBHOOK_FAILURE_REASON_OVERALL_TIMEOUT_EXCEEDED"
1182            }
1183            Self::NetworkErrorMaxRetriesExceeded => {
1184                "WEBHOOK_FAILURE_REASON_NETWORK_ERROR_MAX_RETRIES_EXCEEDED"
1185            }
1186            Self::PayloadError => "WEBHOOK_FAILURE_REASON_PAYLOAD_ERROR",
1187            Self::RedirectLoop => "WEBHOOK_FAILURE_REASON_REDIRECT_LOOP",
1188            Self::IntegrationConfigError => {
1189                "WEBHOOK_FAILURE_REASON_INTEGRATION_CONFIG_ERROR"
1190            }
1191        }
1192    }
1193    /// Creates an enum from field names used in the ProtoBuf definition.
1194    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1195        match value {
1196            "WEBHOOK_FAILURE_REASON_UNSPECIFIED" => Some(Self::Unspecified),
1197            "WEBHOOK_FAILURE_REASON_CLIENT_ERROR" => Some(Self::ClientError),
1198            "WEBHOOK_FAILURE_REASON_SERVER_ERROR_MAX_RETRIES_EXCEEDED" => {
1199                Some(Self::ServerErrorMaxRetriesExceeded)
1200            }
1201            "WEBHOOK_FAILURE_REASON_TIMEOUT_MAX_RETRIES_EXCEEDED" => {
1202                Some(Self::TimeoutMaxRetriesExceeded)
1203            }
1204            "WEBHOOK_FAILURE_REASON_OVERALL_TIMEOUT_EXCEEDED" => {
1205                Some(Self::OverallTimeoutExceeded)
1206            }
1207            "WEBHOOK_FAILURE_REASON_NETWORK_ERROR_MAX_RETRIES_EXCEEDED" => {
1208                Some(Self::NetworkErrorMaxRetriesExceeded)
1209            }
1210            "WEBHOOK_FAILURE_REASON_PAYLOAD_ERROR" => Some(Self::PayloadError),
1211            "WEBHOOK_FAILURE_REASON_REDIRECT_LOOP" => Some(Self::RedirectLoop),
1212            "WEBHOOK_FAILURE_REASON_INTEGRATION_CONFIG_ERROR" => {
1213                Some(Self::IntegrationConfigError)
1214            }
1215            _ => None,
1216        }
1217    }
1218}
1219#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1220#[repr(i32)]
1221pub enum ChannelCaptureFailureReason {
1222    Unspecified = 0,
1223    DataSourceNotFound = 1,
1224    ChannelNotFound = 2,
1225    UnsupportedChannelType = 3,
1226    TimeoutNoData = 4,
1227    InternalError = 5,
1228}
1229impl ChannelCaptureFailureReason {
1230    /// String value of the enum field names used in the ProtoBuf definition.
1231    ///
1232    /// The values are not transformed in any way and thus are considered stable
1233    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1234    pub fn as_str_name(&self) -> &'static str {
1235        match self {
1236            Self::Unspecified => "CHANNEL_CAPTURE_FAILURE_REASON_UNSPECIFIED",
1237            Self::DataSourceNotFound => {
1238                "CHANNEL_CAPTURE_FAILURE_REASON_DATA_SOURCE_NOT_FOUND"
1239            }
1240            Self::ChannelNotFound => "CHANNEL_CAPTURE_FAILURE_REASON_CHANNEL_NOT_FOUND",
1241            Self::UnsupportedChannelType => {
1242                "CHANNEL_CAPTURE_FAILURE_REASON_UNSUPPORTED_CHANNEL_TYPE"
1243            }
1244            Self::TimeoutNoData => "CHANNEL_CAPTURE_FAILURE_REASON_TIMEOUT_NO_DATA",
1245            Self::InternalError => "CHANNEL_CAPTURE_FAILURE_REASON_INTERNAL_ERROR",
1246        }
1247    }
1248    /// Creates an enum from field names used in the ProtoBuf definition.
1249    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1250        match value {
1251            "CHANNEL_CAPTURE_FAILURE_REASON_UNSPECIFIED" => Some(Self::Unspecified),
1252            "CHANNEL_CAPTURE_FAILURE_REASON_DATA_SOURCE_NOT_FOUND" => {
1253                Some(Self::DataSourceNotFound)
1254            }
1255            "CHANNEL_CAPTURE_FAILURE_REASON_CHANNEL_NOT_FOUND" => {
1256                Some(Self::ChannelNotFound)
1257            }
1258            "CHANNEL_CAPTURE_FAILURE_REASON_UNSUPPORTED_CHANNEL_TYPE" => {
1259                Some(Self::UnsupportedChannelType)
1260            }
1261            "CHANNEL_CAPTURE_FAILURE_REASON_TIMEOUT_NO_DATA" => Some(Self::TimeoutNoData),
1262            "CHANNEL_CAPTURE_FAILURE_REASON_INTERNAL_ERROR" => Some(Self::InternalError),
1263            _ => None,
1264        }
1265    }
1266}
1267#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1268#[repr(i32)]
1269pub enum ChannelCaptureSkipReason {
1270    Unspecified = 0,
1271    RunScopedUnsupported = 1,
1272}
1273impl ChannelCaptureSkipReason {
1274    /// String value of the enum field names used in the ProtoBuf definition.
1275    ///
1276    /// The values are not transformed in any way and thus are considered stable
1277    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1278    pub fn as_str_name(&self) -> &'static str {
1279        match self {
1280            Self::Unspecified => "CHANNEL_CAPTURE_SKIP_REASON_UNSPECIFIED",
1281            Self::RunScopedUnsupported => {
1282                "CHANNEL_CAPTURE_SKIP_REASON_RUN_SCOPED_UNSUPPORTED"
1283            }
1284        }
1285    }
1286    /// Creates an enum from field names used in the ProtoBuf definition.
1287    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1288        match value {
1289            "CHANNEL_CAPTURE_SKIP_REASON_UNSPECIFIED" => Some(Self::Unspecified),
1290            "CHANNEL_CAPTURE_SKIP_REASON_RUN_SCOPED_UNSUPPORTED" => {
1291                Some(Self::RunScopedUnsupported)
1292            }
1293            _ => None,
1294        }
1295    }
1296}
1297#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1298#[repr(i32)]
1299pub enum RepeatStepBehavior {
1300    Unspecified = 0,
1301    Isolated = 1,
1302}
1303impl RepeatStepBehavior {
1304    /// String value of the enum field names used in the ProtoBuf definition.
1305    ///
1306    /// The values are not transformed in any way and thus are considered stable
1307    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1308    pub fn as_str_name(&self) -> &'static str {
1309        match self {
1310            Self::Unspecified => "REPEAT_STEP_BEHAVIOR_UNSPECIFIED",
1311            Self::Isolated => "REPEAT_STEP_BEHAVIOR_ISOLATED",
1312        }
1313    }
1314    /// Creates an enum from field names used in the ProtoBuf definition.
1315    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1316        match value {
1317            "REPEAT_STEP_BEHAVIOR_UNSPECIFIED" => Some(Self::Unspecified),
1318            "REPEAT_STEP_BEHAVIOR_ISOLATED" => Some(Self::Isolated),
1319            _ => None,
1320        }
1321    }
1322}
1323#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1324#[repr(i32)]
1325pub enum SearchProcedureExecutionsSortField {
1326    Unspecified = 0,
1327    CreatedAt = 1,
1328    StartedAt = 2,
1329    FinishedAt = 3,
1330    UpdatedAt = 4,
1331}
1332impl SearchProcedureExecutionsSortField {
1333    /// String value of the enum field names used in the ProtoBuf definition.
1334    ///
1335    /// The values are not transformed in any way and thus are considered stable
1336    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1337    pub fn as_str_name(&self) -> &'static str {
1338        match self {
1339            Self::Unspecified => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED",
1340            Self::CreatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT",
1341            Self::StartedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT",
1342            Self::FinishedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT",
1343            Self::UpdatedAt => "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT",
1344        }
1345    }
1346    /// Creates an enum from field names used in the ProtoBuf definition.
1347    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1348        match value {
1349            "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED" => {
1350                Some(Self::Unspecified)
1351            }
1352            "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
1353            "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT" => Some(Self::StartedAt),
1354            "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT" => {
1355                Some(Self::FinishedAt)
1356            }
1357            "SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1358            _ => None,
1359        }
1360    }
1361}
1362#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1363#[repr(i32)]
1364pub enum ProcedureExecutionProgressStatus {
1365    Unspecified = 0,
1366    NotStarted = 1,
1367    InProgress = 2,
1368    Finished = 3,
1369    Aborted = 4,
1370}
1371impl ProcedureExecutionProgressStatus {
1372    /// String value of the enum field names used in the ProtoBuf definition.
1373    ///
1374    /// The values are not transformed in any way and thus are considered stable
1375    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1376    pub fn as_str_name(&self) -> &'static str {
1377        match self {
1378            Self::Unspecified => "PROCEDURE_EXECUTION_PROGRESS_STATUS_UNSPECIFIED",
1379            Self::NotStarted => "PROCEDURE_EXECUTION_PROGRESS_STATUS_NOT_STARTED",
1380            Self::InProgress => "PROCEDURE_EXECUTION_PROGRESS_STATUS_IN_PROGRESS",
1381            Self::Finished => "PROCEDURE_EXECUTION_PROGRESS_STATUS_FINISHED",
1382            Self::Aborted => "PROCEDURE_EXECUTION_PROGRESS_STATUS_ABORTED",
1383        }
1384    }
1385    /// Creates an enum from field names used in the ProtoBuf definition.
1386    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1387        match value {
1388            "PROCEDURE_EXECUTION_PROGRESS_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
1389            "PROCEDURE_EXECUTION_PROGRESS_STATUS_NOT_STARTED" => Some(Self::NotStarted),
1390            "PROCEDURE_EXECUTION_PROGRESS_STATUS_IN_PROGRESS" => Some(Self::InProgress),
1391            "PROCEDURE_EXECUTION_PROGRESS_STATUS_FINISHED" => Some(Self::Finished),
1392            "PROCEDURE_EXECUTION_PROGRESS_STATUS_ABORTED" => Some(Self::Aborted),
1393            _ => None,
1394        }
1395    }
1396}
1397#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1398#[repr(i32)]
1399pub enum ProcedureExecutionsServiceError {
1400    Unspecified = 0,
1401    NotFound = 1,
1402    ProcNotFound = 2,
1403    NodeNotFound = 3,
1404    InvalidNode = 4,
1405    InvalidGraph = 5,
1406    InvalidStepTransition = 6,
1407    InvalidSearchToken = 7,
1408    InvalidStepUpdate = 8,
1409}
1410impl ProcedureExecutionsServiceError {
1411    /// String value of the enum field names used in the ProtoBuf definition.
1412    ///
1413    /// The values are not transformed in any way and thus are considered stable
1414    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1415    pub fn as_str_name(&self) -> &'static str {
1416        match self {
1417            Self::Unspecified => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED",
1418            Self::NotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND",
1419            Self::ProcNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND",
1420            Self::NodeNotFound => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND",
1421            Self::InvalidNode => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE",
1422            Self::InvalidGraph => "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH",
1423            Self::InvalidStepTransition => {
1424                "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION"
1425            }
1426            Self::InvalidSearchToken => {
1427                "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN"
1428            }
1429            Self::InvalidStepUpdate => {
1430                "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE"
1431            }
1432        }
1433    }
1434    /// Creates an enum from field names used in the ProtoBuf definition.
1435    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1436        match value {
1437            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
1438            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
1439            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_PROC_NOT_FOUND" => {
1440                Some(Self::ProcNotFound)
1441            }
1442            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_NODE_NOT_FOUND" => {
1443                Some(Self::NodeNotFound)
1444            }
1445            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_NODE" => Some(Self::InvalidNode),
1446            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_GRAPH" => {
1447                Some(Self::InvalidGraph)
1448            }
1449            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_TRANSITION" => {
1450                Some(Self::InvalidStepTransition)
1451            }
1452            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
1453                Some(Self::InvalidSearchToken)
1454            }
1455            "PROCEDURE_EXECUTIONS_SERVICE_ERROR_INVALID_STEP_UPDATE" => {
1456                Some(Self::InvalidStepUpdate)
1457            }
1458            _ => None,
1459        }
1460    }
1461}
1462/// Generated client implementations.
1463pub mod procedure_executions_service_client {
1464    #![allow(
1465        unused_variables,
1466        dead_code,
1467        missing_docs,
1468        clippy::wildcard_imports,
1469        clippy::let_unit_value,
1470    )]
1471    use tonic::codegen::*;
1472    use tonic::codegen::http::Uri;
1473    #[derive(Debug, Clone)]
1474    pub struct ProcedureExecutionsServiceClient<T> {
1475        inner: tonic::client::Grpc<T>,
1476    }
1477    impl ProcedureExecutionsServiceClient<tonic::transport::Channel> {
1478        /// Attempt to create a new client by connecting to a given endpoint.
1479        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
1480        where
1481            D: TryInto<tonic::transport::Endpoint>,
1482            D::Error: Into<StdError>,
1483        {
1484            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
1485            Ok(Self::new(conn))
1486        }
1487    }
1488    impl<T> ProcedureExecutionsServiceClient<T>
1489    where
1490        T: tonic::client::GrpcService<tonic::body::Body>,
1491        T::Error: Into<StdError>,
1492        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
1493        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
1494    {
1495        pub fn new(inner: T) -> Self {
1496            let inner = tonic::client::Grpc::new(inner);
1497            Self { inner }
1498        }
1499        pub fn with_origin(inner: T, origin: Uri) -> Self {
1500            let inner = tonic::client::Grpc::with_origin(inner, origin);
1501            Self { inner }
1502        }
1503        pub fn with_interceptor<F>(
1504            inner: T,
1505            interceptor: F,
1506        ) -> ProcedureExecutionsServiceClient<InterceptedService<T, F>>
1507        where
1508            F: tonic::service::Interceptor,
1509            T::ResponseBody: Default,
1510            T: tonic::codegen::Service<
1511                http::Request<tonic::body::Body>,
1512                Response = http::Response<
1513                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
1514                >,
1515            >,
1516            <T as tonic::codegen::Service<
1517                http::Request<tonic::body::Body>,
1518            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
1519        {
1520            ProcedureExecutionsServiceClient::new(
1521                InterceptedService::new(inner, interceptor),
1522            )
1523        }
1524        /// Compress requests with the given encoding.
1525        ///
1526        /// This requires the server to support it otherwise it might respond with an
1527        /// error.
1528        #[must_use]
1529        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
1530            self.inner = self.inner.send_compressed(encoding);
1531            self
1532        }
1533        /// Enable decompressing responses.
1534        #[must_use]
1535        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
1536            self.inner = self.inner.accept_compressed(encoding);
1537            self
1538        }
1539        /// Limits the maximum size of a decoded message.
1540        ///
1541        /// Default: `4MB`
1542        #[must_use]
1543        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
1544            self.inner = self.inner.max_decoding_message_size(limit);
1545            self
1546        }
1547        /// Limits the maximum size of an encoded message.
1548        ///
1549        /// Default: `usize::MAX`
1550        #[must_use]
1551        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
1552            self.inner = self.inner.max_encoding_message_size(limit);
1553            self
1554        }
1555        pub async fn create_procedure_execution(
1556            &mut self,
1557            request: impl tonic::IntoRequest<super::CreateProcedureExecutionRequest>,
1558        ) -> std::result::Result<
1559            tonic::Response<super::CreateProcedureExecutionResponse>,
1560            tonic::Status,
1561        > {
1562            self.inner
1563                .ready()
1564                .await
1565                .map_err(|e| {
1566                    tonic::Status::unknown(
1567                        format!("Service was not ready: {}", e.into()),
1568                    )
1569                })?;
1570            let codec = tonic::codec::ProstCodec::default();
1571            let path = http::uri::PathAndQuery::from_static(
1572                "/nominal.procedures.executions.v1.ProcedureExecutionsService/CreateProcedureExecution",
1573            );
1574            let mut req = request.into_request();
1575            req.extensions_mut()
1576                .insert(
1577                    GrpcMethod::new(
1578                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1579                        "CreateProcedureExecution",
1580                    ),
1581                );
1582            self.inner.unary(req, path, codec).await
1583        }
1584        pub async fn get_procedure_execution(
1585            &mut self,
1586            request: impl tonic::IntoRequest<super::GetProcedureExecutionRequest>,
1587        ) -> std::result::Result<
1588            tonic::Response<super::GetProcedureExecutionResponse>,
1589            tonic::Status,
1590        > {
1591            self.inner
1592                .ready()
1593                .await
1594                .map_err(|e| {
1595                    tonic::Status::unknown(
1596                        format!("Service was not ready: {}", e.into()),
1597                    )
1598                })?;
1599            let codec = tonic::codec::ProstCodec::default();
1600            let path = http::uri::PathAndQuery::from_static(
1601                "/nominal.procedures.executions.v1.ProcedureExecutionsService/GetProcedureExecution",
1602            );
1603            let mut req = request.into_request();
1604            req.extensions_mut()
1605                .insert(
1606                    GrpcMethod::new(
1607                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1608                        "GetProcedureExecution",
1609                    ),
1610                );
1611            self.inner.unary(req, path, codec).await
1612        }
1613        pub async fn batch_archive_procedure_executions(
1614            &mut self,
1615            request: impl tonic::IntoRequest<
1616                super::BatchArchiveProcedureExecutionsRequest,
1617            >,
1618        ) -> std::result::Result<
1619            tonic::Response<super::BatchArchiveProcedureExecutionsResponse>,
1620            tonic::Status,
1621        > {
1622            self.inner
1623                .ready()
1624                .await
1625                .map_err(|e| {
1626                    tonic::Status::unknown(
1627                        format!("Service was not ready: {}", e.into()),
1628                    )
1629                })?;
1630            let codec = tonic::codec::ProstCodec::default();
1631            let path = http::uri::PathAndQuery::from_static(
1632                "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchArchiveProcedureExecutions",
1633            );
1634            let mut req = request.into_request();
1635            req.extensions_mut()
1636                .insert(
1637                    GrpcMethod::new(
1638                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1639                        "BatchArchiveProcedureExecutions",
1640                    ),
1641                );
1642            self.inner.unary(req, path, codec).await
1643        }
1644        pub async fn batch_unarchive_procedure_executions(
1645            &mut self,
1646            request: impl tonic::IntoRequest<
1647                super::BatchUnarchiveProcedureExecutionsRequest,
1648            >,
1649        ) -> std::result::Result<
1650            tonic::Response<super::BatchUnarchiveProcedureExecutionsResponse>,
1651            tonic::Status,
1652        > {
1653            self.inner
1654                .ready()
1655                .await
1656                .map_err(|e| {
1657                    tonic::Status::unknown(
1658                        format!("Service was not ready: {}", e.into()),
1659                    )
1660                })?;
1661            let codec = tonic::codec::ProstCodec::default();
1662            let path = http::uri::PathAndQuery::from_static(
1663                "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchUnarchiveProcedureExecutions",
1664            );
1665            let mut req = request.into_request();
1666            req.extensions_mut()
1667                .insert(
1668                    GrpcMethod::new(
1669                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1670                        "BatchUnarchiveProcedureExecutions",
1671                    ),
1672                );
1673            self.inner.unary(req, path, codec).await
1674        }
1675        pub async fn update_procedure_execution_metadata(
1676            &mut self,
1677            request: impl tonic::IntoRequest<
1678                super::UpdateProcedureExecutionMetadataRequest,
1679            >,
1680        ) -> std::result::Result<
1681            tonic::Response<super::UpdateProcedureExecutionMetadataResponse>,
1682            tonic::Status,
1683        > {
1684            self.inner
1685                .ready()
1686                .await
1687                .map_err(|e| {
1688                    tonic::Status::unknown(
1689                        format!("Service was not ready: {}", e.into()),
1690                    )
1691                })?;
1692            let codec = tonic::codec::ProstCodec::default();
1693            let path = http::uri::PathAndQuery::from_static(
1694                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecutionMetadata",
1695            );
1696            let mut req = request.into_request();
1697            req.extensions_mut()
1698                .insert(
1699                    GrpcMethod::new(
1700                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1701                        "UpdateProcedureExecutionMetadata",
1702                    ),
1703                );
1704            self.inner.unary(req, path, codec).await
1705        }
1706        pub async fn update_procedure_execution(
1707            &mut self,
1708            request: impl tonic::IntoRequest<super::UpdateProcedureExecutionRequest>,
1709        ) -> std::result::Result<
1710            tonic::Response<super::UpdateProcedureExecutionResponse>,
1711            tonic::Status,
1712        > {
1713            self.inner
1714                .ready()
1715                .await
1716                .map_err(|e| {
1717                    tonic::Status::unknown(
1718                        format!("Service was not ready: {}", e.into()),
1719                    )
1720                })?;
1721            let codec = tonic::codec::ProstCodec::default();
1722            let path = http::uri::PathAndQuery::from_static(
1723                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateProcedureExecution",
1724            );
1725            let mut req = request.into_request();
1726            req.extensions_mut()
1727                .insert(
1728                    GrpcMethod::new(
1729                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1730                        "UpdateProcedureExecution",
1731                    ),
1732                );
1733            self.inner.unary(req, path, codec).await
1734        }
1735        pub async fn update_step(
1736            &mut self,
1737            request: impl tonic::IntoRequest<super::UpdateStepRequest>,
1738        ) -> std::result::Result<
1739            tonic::Response<super::UpdateStepResponse>,
1740            tonic::Status,
1741        > {
1742            self.inner
1743                .ready()
1744                .await
1745                .map_err(|e| {
1746                    tonic::Status::unknown(
1747                        format!("Service was not ready: {}", e.into()),
1748                    )
1749                })?;
1750            let codec = tonic::codec::ProstCodec::default();
1751            let path = http::uri::PathAndQuery::from_static(
1752                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStep",
1753            );
1754            let mut req = request.into_request();
1755            req.extensions_mut()
1756                .insert(
1757                    GrpcMethod::new(
1758                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1759                        "UpdateStep",
1760                    ),
1761                );
1762            self.inner.unary(req, path, codec).await
1763        }
1764        pub async fn update_step_success_condition_status(
1765            &mut self,
1766            request: impl tonic::IntoRequest<
1767                super::UpdateStepSuccessConditionStatusRequest,
1768            >,
1769        ) -> std::result::Result<
1770            tonic::Response<super::UpdateStepSuccessConditionStatusResponse>,
1771            tonic::Status,
1772        > {
1773            self.inner
1774                .ready()
1775                .await
1776                .map_err(|e| {
1777                    tonic::Status::unknown(
1778                        format!("Service was not ready: {}", e.into()),
1779                    )
1780                })?;
1781            let codec = tonic::codec::ProstCodec::default();
1782            let path = http::uri::PathAndQuery::from_static(
1783                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepSuccessConditionStatus",
1784            );
1785            let mut req = request.into_request();
1786            req.extensions_mut()
1787                .insert(
1788                    GrpcMethod::new(
1789                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1790                        "UpdateStepSuccessConditionStatus",
1791                    ),
1792                );
1793            self.inner.unary(req, path, codec).await
1794        }
1795        pub async fn update_step_completion_action_status(
1796            &mut self,
1797            request: impl tonic::IntoRequest<
1798                super::UpdateStepCompletionActionStatusRequest,
1799            >,
1800        ) -> std::result::Result<
1801            tonic::Response<super::UpdateStepCompletionActionStatusResponse>,
1802            tonic::Status,
1803        > {
1804            self.inner
1805                .ready()
1806                .await
1807                .map_err(|e| {
1808                    tonic::Status::unknown(
1809                        format!("Service was not ready: {}", e.into()),
1810                    )
1811                })?;
1812            let codec = tonic::codec::ProstCodec::default();
1813            let path = http::uri::PathAndQuery::from_static(
1814                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepCompletionActionStatus",
1815            );
1816            let mut req = request.into_request();
1817            req.extensions_mut()
1818                .insert(
1819                    GrpcMethod::new(
1820                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1821                        "UpdateStepCompletionActionStatus",
1822                    ),
1823                );
1824            self.inner.unary(req, path, codec).await
1825        }
1826        pub async fn update_step_channel_capture_status(
1827            &mut self,
1828            request: impl tonic::IntoRequest<
1829                super::UpdateStepChannelCaptureStatusRequest,
1830            >,
1831        ) -> std::result::Result<
1832            tonic::Response<super::UpdateStepChannelCaptureStatusResponse>,
1833            tonic::Status,
1834        > {
1835            self.inner
1836                .ready()
1837                .await
1838                .map_err(|e| {
1839                    tonic::Status::unknown(
1840                        format!("Service was not ready: {}", e.into()),
1841                    )
1842                })?;
1843            let codec = tonic::codec::ProstCodec::default();
1844            let path = http::uri::PathAndQuery::from_static(
1845                "/nominal.procedures.executions.v1.ProcedureExecutionsService/UpdateStepChannelCaptureStatus",
1846            );
1847            let mut req = request.into_request();
1848            req.extensions_mut()
1849                .insert(
1850                    GrpcMethod::new(
1851                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1852                        "UpdateStepChannelCaptureStatus",
1853                    ),
1854                );
1855            self.inner.unary(req, path, codec).await
1856        }
1857        pub async fn repeat_step(
1858            &mut self,
1859            request: impl tonic::IntoRequest<super::RepeatStepRequest>,
1860        ) -> std::result::Result<
1861            tonic::Response<super::RepeatStepResponse>,
1862            tonic::Status,
1863        > {
1864            self.inner
1865                .ready()
1866                .await
1867                .map_err(|e| {
1868                    tonic::Status::unknown(
1869                        format!("Service was not ready: {}", e.into()),
1870                    )
1871                })?;
1872            let codec = tonic::codec::ProstCodec::default();
1873            let path = http::uri::PathAndQuery::from_static(
1874                "/nominal.procedures.executions.v1.ProcedureExecutionsService/RepeatStep",
1875            );
1876            let mut req = request.into_request();
1877            req.extensions_mut()
1878                .insert(
1879                    GrpcMethod::new(
1880                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1881                        "RepeatStep",
1882                    ),
1883                );
1884            self.inner.unary(req, path, codec).await
1885        }
1886        pub async fn search_procedure_executions(
1887            &mut self,
1888            request: impl tonic::IntoRequest<super::SearchProcedureExecutionsRequest>,
1889        ) -> std::result::Result<
1890            tonic::Response<super::SearchProcedureExecutionsResponse>,
1891            tonic::Status,
1892        > {
1893            self.inner
1894                .ready()
1895                .await
1896                .map_err(|e| {
1897                    tonic::Status::unknown(
1898                        format!("Service was not ready: {}", e.into()),
1899                    )
1900                })?;
1901            let codec = tonic::codec::ProstCodec::default();
1902            let path = http::uri::PathAndQuery::from_static(
1903                "/nominal.procedures.executions.v1.ProcedureExecutionsService/SearchProcedureExecutions",
1904            );
1905            let mut req = request.into_request();
1906            req.extensions_mut()
1907                .insert(
1908                    GrpcMethod::new(
1909                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1910                        "SearchProcedureExecutions",
1911                    ),
1912                );
1913            self.inner.unary(req, path, codec).await
1914        }
1915        pub async fn batch_get_procedure_execution_metadata(
1916            &mut self,
1917            request: impl tonic::IntoRequest<
1918                super::BatchGetProcedureExecutionMetadataRequest,
1919            >,
1920        ) -> std::result::Result<
1921            tonic::Response<super::BatchGetProcedureExecutionMetadataResponse>,
1922            tonic::Status,
1923        > {
1924            self.inner
1925                .ready()
1926                .await
1927                .map_err(|e| {
1928                    tonic::Status::unknown(
1929                        format!("Service was not ready: {}", e.into()),
1930                    )
1931                })?;
1932            let codec = tonic::codec::ProstCodec::default();
1933            let path = http::uri::PathAndQuery::from_static(
1934                "/nominal.procedures.executions.v1.ProcedureExecutionsService/BatchGetProcedureExecutionMetadata",
1935            );
1936            let mut req = request.into_request();
1937            req.extensions_mut()
1938                .insert(
1939                    GrpcMethod::new(
1940                        "nominal.procedures.executions.v1.ProcedureExecutionsService",
1941                        "BatchGetProcedureExecutionMetadata",
1942                    ),
1943                );
1944            self.inner.unary(req, path, codec).await
1945        }
1946    }
1947}