public final class Model
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Translation API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Model() |
| Modifier and Type | Method and Description |
|---|---|
Model |
clone() |
String |
getCreateTime()
Output only.
|
String |
getDataset()
The dataset from which the model is trained, in form of `projects/{project-number-or-
id}/locations/{location_id}/datasets/{dataset_id}`
|
String |
getDisplayName()
The name of the model to show in the interface.
|
String |
getName()
The resource name of the model, in form of `projects/{project-number-or-
id}/locations/{location_id}/models/{model_id}`
|
String |
getSourceLanguageCode()
Output only.
|
String |
getTargetLanguageCode()
Output only.
|
Integer |
getTestExampleCount()
Output only.
|
Integer |
getTrainExampleCount()
Output only.
|
String |
getUpdateTime()
Output only.
|
Integer |
getValidateExampleCount()
Output only.
|
Model |
set(String fieldName,
Object value) |
Model |
setCreateTime(String createTime)
Output only.
|
Model |
setDataset(String dataset)
The dataset from which the model is trained, in form of `projects/{project-number-or-
id}/locations/{location_id}/datasets/{dataset_id}`
|
Model |
setDisplayName(String displayName)
The name of the model to show in the interface.
|
Model |
setName(String name)
The resource name of the model, in form of `projects/{project-number-or-
id}/locations/{location_id}/models/{model_id}`
|
Model |
setSourceLanguageCode(String sourceLanguageCode)
Output only.
|
Model |
setTargetLanguageCode(String targetLanguageCode)
Output only.
|
Model |
setTestExampleCount(Integer testExampleCount)
Output only.
|
Model |
setTrainExampleCount(Integer trainExampleCount)
Output only.
|
Model |
setUpdateTime(String updateTime)
Output only.
|
Model |
setValidateExampleCount(Integer validateExampleCount)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCreateTime()
null for nonepublic Model setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getDataset()
null for nonepublic Model setDataset(String dataset)
dataset - dataset or null for nonepublic String getDisplayName()
null for nonepublic Model setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getName()
null for nonepublic Model setName(String name)
name - name or null for nonepublic String getSourceLanguageCode()
null for nonepublic Model setSourceLanguageCode(String sourceLanguageCode)
sourceLanguageCode - sourceLanguageCode or null for nonepublic String getTargetLanguageCode()
null for nonepublic Model setTargetLanguageCode(String targetLanguageCode)
targetLanguageCode - targetLanguageCode or null for nonepublic Integer getTestExampleCount()
null for nonepublic Model setTestExampleCount(Integer testExampleCount)
testExampleCount - testExampleCount or null for nonepublic Integer getTrainExampleCount()
null for nonepublic Model setTrainExampleCount(Integer trainExampleCount)
trainExampleCount - trainExampleCount or null for nonepublic String getUpdateTime()
null for nonepublic Model setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic Integer getValidateExampleCount()
null for nonepublic Model setValidateExampleCount(Integer validateExampleCount)
validateExampleCount - validateExampleCount or null for nonepublic Model set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Model clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.