pub struct BatchJob {
pub resource_name: String,
pub id: Option<i64>,
pub next_add_sequence_token: Option<String>,
pub metadata: Option<BatchJobMetadata>,
pub status: i32,
pub long_running_operation: Option<String>,
}
Expand description
A list of mutates being processed asynchronously. The mutates are uploaded by the user. The mutates themselves aren’t readable and the results of the job can only be read using BatchJobService.ListBatchJobResults.
Fields§
§resource_name: String
Immutable. The resource name of the batch job. Batch job resource names have the form:
customers/{customer_id}/batchJobs/{batch_job_id}
id: Option<i64>
Output only. ID of this batch job.
next_add_sequence_token: Option<String>
Output only. The next sequence token to use when adding operations. Only set when the batch job status is PENDING.
metadata: Option<BatchJobMetadata>
Output only. Contains additional information about this batch job.
status: i32
Output only. Status of this batch job.
long_running_operation: Option<String>
Output only. The resource name of the long-running operation that can be used to poll for completion. Only set when the batch job status is RUNNING or DONE.
Implementations§
source§impl BatchJob
impl BatchJob
sourcepub fn status(&self) -> BatchJobStatus
pub fn status(&self) -> BatchJobStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: BatchJobStatus)
pub fn set_status(&mut self, value: BatchJobStatus)
Sets status
to the provided enum value.
sourcepub fn next_add_sequence_token(&self) -> &str
pub fn next_add_sequence_token(&self) -> &str
Returns the value of next_add_sequence_token
, or the default value if next_add_sequence_token
is unset.
sourcepub fn long_running_operation(&self) -> &str
pub fn long_running_operation(&self) -> &str
Returns the value of long_running_operation
, or the default value if long_running_operation
is unset.
Trait Implementations§
source§impl Message for BatchJob
impl Message for BatchJob
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
.source§impl PartialEq for BatchJob
impl PartialEq for BatchJob
impl StructuralPartialEq for BatchJob
Auto Trait Implementations§
impl Freeze for BatchJob
impl RefUnwindSafe for BatchJob
impl Send for BatchJob
impl Sync for BatchJob
impl Unpin for BatchJob
impl UnwindSafe for BatchJob
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