Struct google_api_proto::google::cloud::translation::v3::BatchTranslateDocumentResponse
source · pub struct BatchTranslateDocumentResponse {
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>,
pub end_time: Option<Timestamp>,
}
Expand description
Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateDocument if at least one document is translated successfully.
Fields§
§total_pages: i64
Total number of pages to translate in all documents. Documents without clear page definition (such as XLSX) are not counted.
translated_pages: i64
Number of successfully translated pages in all documents. Documents without clear page definition (such as XLSX) are not counted.
failed_pages: i64
Number of pages that failed to process in all documents. 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)
total_characters: i64
Total number of characters (Unicode codepoints) in all documents.
translated_characters: i64
Number of successfully translated characters (Unicode codepoints) in all documents.
failed_characters: i64
Number of characters that have failed to process (Unicode codepoints) in all documents.
total_billable_characters: i64
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
submit_time: Option<Timestamp>
Time when the operation was submitted.
end_time: Option<Timestamp>
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
Trait Implementations§
source§impl Clone for BatchTranslateDocumentResponse
impl Clone for BatchTranslateDocumentResponse
source§fn clone(&self) -> BatchTranslateDocumentResponse
fn clone(&self) -> BatchTranslateDocumentResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for BatchTranslateDocumentResponse
impl Message for BatchTranslateDocumentResponse
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 BatchTranslateDocumentResponse
impl PartialEq for BatchTranslateDocumentResponse
source§fn eq(&self, other: &BatchTranslateDocumentResponse) -> bool
fn eq(&self, other: &BatchTranslateDocumentResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for BatchTranslateDocumentResponse
impl StructuralPartialEq for BatchTranslateDocumentResponse
Auto Trait Implementations§
impl Freeze for BatchTranslateDocumentResponse
impl RefUnwindSafe for BatchTranslateDocumentResponse
impl Send for BatchTranslateDocumentResponse
impl Sync for BatchTranslateDocumentResponse
impl Unpin for BatchTranslateDocumentResponse
impl UnwindSafe for BatchTranslateDocumentResponse
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