pub struct Job {
pub name: String,
pub uid: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: i32,
pub retry_count: u32,
pub service: i32,
pub service_job: String,
pub message: String,
pub labels: BTreeMap<String, String>,
pub trigger: i32,
pub execution_spec: Option<ExecutionSpec>,
}Expand description
A job represents an instance of a task.
Fields§
§name: StringOutput only. The relative resource name of the job, of the form:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}.
uid: StringOutput only. System generated globally unique ID for the job.
start_time: Option<Timestamp>Output only. The time when the job was started.
end_time: Option<Timestamp>Output only. The time when the job ended.
state: i32Output only. Execution state for the job.
retry_count: u32Output only. The number of times the job has been retried (excluding the initial attempt).
service: i32Output only. The underlying service running a job.
service_job: StringOutput only. The full resource name for the job run under a particular service.
message: StringOutput only. Additional information about the current state.
labels: BTreeMap<String, String>Output only. User-defined labels for the task.
trigger: i32Output only. Job execution trigger.
execution_spec: Option<ExecutionSpec>Output only. Spec related to how a task is executed.
Implementations§
source§impl Job
impl Job
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is set to an invalid enum value.
sourcepub fn service(&self) -> Service
pub fn service(&self) -> Service
Returns the enum value of service, or the default if the field is set to an invalid enum value.
sourcepub fn set_service(&mut self, value: Service)
pub fn set_service(&mut self, value: Service)
Sets service to the provided enum value.
sourcepub fn trigger(&self) -> Trigger
pub fn trigger(&self) -> Trigger
Returns the enum value of trigger, or the default if the field is set to an invalid enum value.
sourcepub fn set_trigger(&mut self, value: Trigger)
pub fn set_trigger(&mut self, value: Trigger)
Sets trigger to the provided enum value.
Trait Implementations§
source§impl Message for Job
impl Message for Job
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.impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request