Struct google_api_proto::google::cloud::translation::v3::BatchTranslateDocumentMetadata
source · pub struct BatchTranslateDocumentMetadata {
pub state: i32,
pub total_pages: i64,
pub translated_pages: i64,
pub failed_pages: i64,
pub total_billable_pages: i64,
pub total_characters: i64,
pub translated_characters: i64,
pub failed_characters: i64,
pub total_billable_characters: i64,
pub submit_time: Option<Timestamp>,
}
Expand description
State metadata for the batch translation operation.
Fields§
§state: i32
The state of the operation.
total_pages: i64
Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
translated_pages: i64
Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
failed_pages: i64
Number of pages that failed to process in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
total_billable_pages: i64
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.
total_characters: i64
Total number of characters (Unicode codepoints) in all documents so far.
translated_characters: i64
Number of successfully translated characters (Unicode codepoints) in all documents so far.
failed_characters: i64
Number of characters that have failed to process (Unicode codepoints) in all documents so far.
total_billable_characters: i64
Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.
submit_time: Option<Timestamp>
Time when the operation was submitted.
Implementations§
Trait Implementations§
source§impl Clone for BatchTranslateDocumentMetadata
impl Clone for BatchTranslateDocumentMetadata
source§fn clone(&self) -> BatchTranslateDocumentMetadata
fn clone(&self) -> BatchTranslateDocumentMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for BatchTranslateDocumentMetadata
impl Message for BatchTranslateDocumentMetadata
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 BatchTranslateDocumentMetadata
impl PartialEq for BatchTranslateDocumentMetadata
source§fn eq(&self, other: &BatchTranslateDocumentMetadata) -> bool
fn eq(&self, other: &BatchTranslateDocumentMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for BatchTranslateDocumentMetadata
impl StructuralPartialEq for BatchTranslateDocumentMetadata
Auto Trait Implementations§
impl Freeze for BatchTranslateDocumentMetadata
impl RefUnwindSafe for BatchTranslateDocumentMetadata
impl Send for BatchTranslateDocumentMetadata
impl Sync for BatchTranslateDocumentMetadata
impl Unpin for BatchTranslateDocumentMetadata
impl UnwindSafe for BatchTranslateDocumentMetadata
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