#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompleteDeploymentEvent {
#[prost(enumeration = "complete_deployment_event::State", tag = "3")]
pub state: i32,
#[prost(bool, tag = "4")]
pub preview_only: bool,
#[prost(oneof = "complete_deployment_event::Result", tags = "1, 2")]
pub result: ::core::option::Option<complete_deployment_event::Result>,
}
pub mod complete_deployment_event {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Succeeded = 1,
Failed = 2,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Succeeded => "SUCCEEDED",
State::Failed => "FAILED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"SUCCEEDED" => Some(Self::Succeeded),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "1")]
Value(super::CompleteDeploymentResult),
#[prost(message, tag = "2")]
Error(super::super::super::super::super::rpc::Status),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompleteDeploymentResult {
#[prost(string, tag = "1")]
pub deployment: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub preview: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
}