pub struct Task {
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub display_name: String,
pub state: i32,
pub labels: HashMap<String, String>,
pub trigger_spec: Option<TriggerSpec>,
pub execution_spec: Option<ExecutionSpec>,
pub execution_status: Option<ExecutionStatus>,
pub config: Option<Config>,
}Expand description
A task represents a user-visible job.
Fields§
§name: StringOutput only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.
uid: StringOutput only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.
create_time: Option<Timestamp>Output only. The time when the task was created.
update_time: Option<Timestamp>Output only. The time when the task was last updated.
description: StringOptional. Description of the task.
display_name: StringOptional. User friendly display name.
state: i32Output only. Current state of the task.
labels: HashMap<String, String>Optional. User-defined labels for the task.
trigger_spec: Option<TriggerSpec>Required. Spec related to how often and when a task should be triggered.
execution_spec: Option<ExecutionSpec>Required. Spec related to how a task is executed.
execution_status: Option<ExecutionStatus>Output only. Status of the latest task executions.
config: Option<Config>Task template specific user-specified config.
Implementations§
Trait Implementations§
Source§impl Message for Task
impl Message for Task
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.