#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalCommand {
#[prost(string, tag = "3")]
pub action_digest: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OmittedLocalCommand {
#[prost(string, tag = "1")]
pub action_digest: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkerInitCommand {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkerCommand {
#[prost(string, tag = "3")]
pub action_digest: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoteCommand {
#[prost(string, tag = "1")]
pub action_digest: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub cache_hit: bool,
#[prost(enumeration = "CacheHitType", tag = "5")]
pub cache_hit_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandExecutionKind {
#[prost(oneof = "command_execution_kind::Command", tags = "1, 2, 3, 4, 5")]
pub command: ::core::option::Option<command_execution_kind::Command>,
}
pub mod command_execution_kind {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Command {
#[prost(message, tag = "1")]
LocalCommand(super::LocalCommand),
#[prost(message, tag = "2")]
RemoteCommand(super::RemoteCommand),
#[prost(message, tag = "3")]
OmittedLocalCommand(super::OmittedLocalCommand),
#[prost(message, tag = "4")]
WorkerInitCommand(super::WorkerInitCommand),
#[prost(message, tag = "5")]
WorkerCommand(super::WorkerCommand),
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CacheHitType {
ActionCache = 0,
RemoteDepFileCache = 1,
Executed = 2,
}
impl CacheHitType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::ActionCache => "ACTION_CACHE",
Self::RemoteDepFileCache => "REMOTE_DEP_FILE_CACHE",
Self::Executed => "EXECUTED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACTION_CACHE" => Some(Self::ActionCache),
"REMOTE_DEP_FILE_CACHE" => Some(Self::RemoteDepFileCache),
"EXECUTED" => Some(Self::Executed),
_ => None,
}
}
}