public class Prediction.Trainedmodels.Insert extends PredictionRequest<Insert2>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Prediction.Trainedmodels.Insert(java.lang.String project,
Insert content)
Train a Prediction API model.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProject()
The project associated with the model.
|
Prediction.Trainedmodels.Insert |
set(java.lang.String parameterName,
java.lang.Object value) |
Prediction.Trainedmodels.Insert |
setAlt(java.lang.String alt)
Data format for the response.
|
Prediction.Trainedmodels.Insert |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Prediction.Trainedmodels.Insert |
setKey(java.lang.String key)
API key.
|
Prediction.Trainedmodels.Insert |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Prediction.Trainedmodels.Insert |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Prediction.Trainedmodels.Insert |
setProject(java.lang.String project)
The project associated with the model.
|
Prediction.Trainedmodels.Insert |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Prediction.Trainedmodels.Insert |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Prediction.Trainedmodels.Insert(java.lang.String project, Insert content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Prediction.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
project
- The project associated with the model.content
- the Insert
public Prediction.Trainedmodels.Insert setAlt(java.lang.String alt)
PredictionRequest
setAlt
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setFields(java.lang.String fields)
PredictionRequest
setFields
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setKey(java.lang.String key)
PredictionRequest
setKey
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setOauthToken(java.lang.String oauthToken)
PredictionRequest
setOauthToken
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setPrettyPrint(java.lang.Boolean prettyPrint)
PredictionRequest
setPrettyPrint
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setQuotaUser(java.lang.String quotaUser)
PredictionRequest
setQuotaUser
in class PredictionRequest<Insert2>
public Prediction.Trainedmodels.Insert setUserIp(java.lang.String userIp)
PredictionRequest
setUserIp
in class PredictionRequest<Insert2>
public java.lang.String getProject()
public Prediction.Trainedmodels.Insert setProject(java.lang.String project)
public Prediction.Trainedmodels.Insert set(java.lang.String parameterName, java.lang.Object value)
set
in class PredictionRequest<Insert2>