#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestMatrixEventData {
#[prost(message, optional, tag = "1")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(enumeration = "TestState", tag = "2")]
pub state: i32,
#[prost(string, tag = "3")]
pub invalid_matrix_details: ::prost::alloc::string::String,
#[prost(enumeration = "OutcomeSummary", tag = "4")]
pub outcome_summary: i32,
#[prost(message, optional, tag = "5")]
pub result_storage: ::core::option::Option<ResultStorage>,
#[prost(message, optional, tag = "6")]
pub client_info: ::core::option::Option<ClientInfo>,
#[prost(string, tag = "7")]
pub test_matrix_id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientInfo {
#[prost(string, tag = "1")]
pub client: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "2")]
pub details: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResultStorage {
#[prost(string, tag = "1")]
pub tool_results_history: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub tool_results_execution: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub results_uri: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub gcs_path: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TestState {
Unspecified = 0,
Validating = 1,
Pending = 2,
Finished = 3,
Error = 4,
Invalid = 5,
}
impl TestState {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TEST_STATE_UNSPECIFIED",
Self::Validating => "VALIDATING",
Self::Pending => "PENDING",
Self::Finished => "FINISHED",
Self::Error => "ERROR",
Self::Invalid => "INVALID",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TEST_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"VALIDATING" => Some(Self::Validating),
"PENDING" => Some(Self::Pending),
"FINISHED" => Some(Self::Finished),
"ERROR" => Some(Self::Error),
"INVALID" => Some(Self::Invalid),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OutcomeSummary {
Unspecified = 0,
Success = 1,
Failure = 2,
Inconclusive = 3,
Skipped = 4,
}
impl OutcomeSummary {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "OUTCOME_SUMMARY_UNSPECIFIED",
Self::Success => "SUCCESS",
Self::Failure => "FAILURE",
Self::Inconclusive => "INCONCLUSIVE",
Self::Skipped => "SKIPPED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OUTCOME_SUMMARY_UNSPECIFIED" => Some(Self::Unspecified),
"SUCCESS" => Some(Self::Success),
"FAILURE" => Some(Self::Failure),
"INCONCLUSIVE" => Some(Self::Inconclusive),
"SKIPPED" => Some(Self::Skipped),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestMatrixCompletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<TestMatrixEventData>,
}