Class BatchTranslateDocumentMetadata (3.12.1)

BatchTranslateDocumentMetadata(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

State metadata for the batch translation operation.

Attributes

NameDescription
state google.cloud.translate_v3beta1.types.BatchTranslateDocumentMetadata.State
The state of the operation.
total_pages int
Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
translated_pages int
Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
failed_pages int
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 int
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.
total_characters int
Total number of characters (Unicode codepoints) in all documents so far.
translated_characters int
Number of successfully translated characters (Unicode codepoints) in all documents so far.
failed_characters int
Number of characters that have failed to process (Unicode codepoints) in all documents so far.
total_billable_characters int
Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.
submit_time google.protobuf.timestamp_pb2.Timestamp
Time when the operation was submitted.

Classes

State

State(value)

State of the job.

Values: STATE_UNSPECIFIED (0): Invalid. RUNNING (1): Request is being processed. SUCCEEDED (2): The batch is processed, and at least one item was successfully processed. FAILED (3): The batch is done and no item was successfully processed. CANCELLING (4): Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id. CANCELLED (5): The batch is done after the user has called the longrunning.Operations.CancelOperation. Any records processed before the cancel command are output as specified in the request.