public class DocumentStatus
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
DocumentStatus.Status
The status of the translation job associated with a submitted document.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
baseModelId |
protected java.lang.Long |
characterCount |
protected java.util.Date |
completed |
protected java.util.Date |
created |
protected java.lang.Double |
detectedLanguageConfidence |
protected java.lang.String |
documentId |
protected java.lang.String |
filename |
protected java.lang.String |
modelId |
protected java.lang.String |
source |
protected java.lang.String |
status |
protected java.lang.String |
target |
protected java.lang.Long |
wordCount |
Constructor and Description |
---|
DocumentStatus() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseModelId()
Gets the baseModelId.
|
java.lang.Long |
getCharacterCount()
Gets the characterCount.
|
java.util.Date |
getCompleted()
Gets the completed.
|
java.util.Date |
getCreated()
Gets the created.
|
java.lang.Double |
getDetectedLanguageConfidence()
Gets the detectedLanguageConfidence.
|
java.lang.String |
getDocumentId()
Gets the documentId.
|
java.lang.String |
getFilename()
Gets the filename.
|
java.lang.String |
getModelId()
Gets the modelId.
|
java.lang.String |
getSource()
Gets the source.
|
java.lang.String |
getStatus()
Gets the status.
|
java.lang.String |
getTarget()
Gets the target.
|
java.lang.Long |
getWordCount()
Gets the wordCount.
|
@SerializedName(value="document_id") protected java.lang.String documentId
protected java.lang.String filename
protected java.lang.String status
@SerializedName(value="model_id") protected java.lang.String modelId
@SerializedName(value="base_model_id") protected java.lang.String baseModelId
protected java.lang.String source
@SerializedName(value="detected_language_confidence") protected java.lang.Double detectedLanguageConfidence
protected java.lang.String target
protected java.util.Date created
protected java.util.Date completed
@SerializedName(value="word_count") protected java.lang.Long wordCount
@SerializedName(value="character_count") protected java.lang.Long characterCount
public java.lang.String getDocumentId()
System generated ID identifying a document being translated using one specific translation model.
public java.lang.String getFilename()
filename from the submission (if it was missing in the multipart-form, 'noname.
public java.lang.String getStatus()
The status of the translation job associated with a submitted document.
public java.lang.String getModelId()
A globally unique string that identifies the underlying model that is used for translation.
public java.lang.String getBaseModelId()
Model ID of the base model that was used to customize the model. If the model is not a custom model, this will be absent or an empty string.
public java.lang.String getSource()
Translation source language code.
public java.lang.Double getDetectedLanguageConfidence()
A score between 0 and 1 indicating the confidence of source language detection. A higher value indicates greater confidence. This is returned only when the service automatically detects the source language.
public java.lang.String getTarget()
Translation target language code.
public java.util.Date getCreated()
The time when the document was submitted.
public java.util.Date getCompleted()
The time when the translation completed.
public java.lang.Long getWordCount()
An estimate of the number of words in the source document. Returned only if `status` is `available`.
public java.lang.Long getCharacterCount()
The number of characters in the source document, present only if status=available.