#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkflowInvocationCompletionLogEntry {
#[prost(string, tag = "1")]
pub workflow_invocation_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub workflow_config_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub release_config_id: ::prost::alloc::string::String,
#[prost(
enumeration = "workflow_invocation_completion_log_entry::TerminalState",
tag = "4"
)]
pub terminal_state: i32,
}
pub mod workflow_invocation_completion_log_entry {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TerminalState {
Unspecified = 0,
Succeeded = 1,
Cancelled = 2,
Failed = 3,
}
impl TerminalState {
pub fn as_str_name(&self) -> &'static str {
match self {
TerminalState::Unspecified => "TERMINAL_STATE_UNSPECIFIED",
TerminalState::Succeeded => "SUCCEEDED",
TerminalState::Cancelled => "CANCELLED",
TerminalState::Failed => "FAILED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TERMINAL_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"SUCCEEDED" => Some(Self::Succeeded),
"CANCELLED" => Some(Self::Cancelled),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}