public final class Insert
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 Prediction API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Insert.TrainingInstances
Model definition for InsertTrainingInstances.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Insert() |
Modifier and Type | Method and Description |
---|---|
Insert |
clone() |
java.lang.String |
getId()
The unique name for the predictive model.
|
java.lang.String |
getModelType()
Type of predictive model (classification or regression).
|
java.lang.String |
getSourceModel()
The Id of the model to be copied over.
|
java.lang.String |
getStorageDataLocation()
Google storage location of the training data file.
|
java.lang.String |
getStoragePMMLLocation()
Google storage location of the preprocessing pmml file.
|
java.lang.String |
getStoragePMMLModelLocation()
Google storage location of the pmml model file.
|
java.util.List<Insert.TrainingInstances> |
getTrainingInstances()
Instances to train model on.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Double>> |
getUtility()
A class weighting function, which allows the importance weights for class labels to be
specified (Categorical models only).
|
Insert |
set(java.lang.String fieldName,
java.lang.Object value) |
Insert |
setId(java.lang.String id)
The unique name for the predictive model.
|
Insert |
setModelType(java.lang.String modelType)
Type of predictive model (classification or regression).
|
Insert |
setSourceModel(java.lang.String sourceModel)
The Id of the model to be copied over.
|
Insert |
setStorageDataLocation(java.lang.String storageDataLocation)
Google storage location of the training data file.
|
Insert |
setStoragePMMLLocation(java.lang.String storagePMMLLocation)
Google storage location of the preprocessing pmml file.
|
Insert |
setStoragePMMLModelLocation(java.lang.String storagePMMLModelLocation)
Google storage location of the pmml model file.
|
Insert |
setTrainingInstances(java.util.List<Insert.TrainingInstances> trainingInstances)
Instances to train model on.
|
Insert |
setUtility(java.util.List<java.util.Map<java.lang.String,java.lang.Double>> utility)
A class weighting function, which allows the importance weights for class labels to be
specified (Categorical models only).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getId()
null
for nonepublic Insert setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getModelType()
null
for nonepublic Insert setModelType(java.lang.String modelType)
modelType
- modelType or null
for nonepublic java.lang.String getSourceModel()
null
for nonepublic Insert setSourceModel(java.lang.String sourceModel)
sourceModel
- sourceModel or null
for nonepublic java.lang.String getStorageDataLocation()
null
for nonepublic Insert setStorageDataLocation(java.lang.String storageDataLocation)
storageDataLocation
- storageDataLocation or null
for nonepublic java.lang.String getStoragePMMLLocation()
null
for nonepublic Insert setStoragePMMLLocation(java.lang.String storagePMMLLocation)
storagePMMLLocation
- storagePMMLLocation or null
for nonepublic java.lang.String getStoragePMMLModelLocation()
null
for nonepublic Insert setStoragePMMLModelLocation(java.lang.String storagePMMLModelLocation)
storagePMMLModelLocation
- storagePMMLModelLocation or null
for nonepublic java.util.List<Insert.TrainingInstances> getTrainingInstances()
null
for nonepublic Insert setTrainingInstances(java.util.List<Insert.TrainingInstances> trainingInstances)
trainingInstances
- trainingInstances or null
for nonepublic java.util.List<java.util.Map<java.lang.String,java.lang.Double>> getUtility()
null
for nonepublic Insert setUtility(java.util.List<java.util.Map<java.lang.String,java.lang.Double>> utility)
utility
- utility or null
for nonepublic Insert set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Insert clone()
clone
in class com.google.api.client.json.GenericJson