public class Prediction.Hostedmodels.Predict extends PredictionRequest<Output>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Prediction.Hostedmodels.Predict(String hostedModelName,
Input content)
Submit input and request an output against a hosted model.
|
Modifier and Type | Method and Description |
---|---|
String |
getHostedModelName()
The name of a hosted model.
|
Prediction.Hostedmodels.Predict |
set(String parameterName,
Object value) |
Prediction.Hostedmodels.Predict |
setAlt(String alt)
Data format for the response.
|
Prediction.Hostedmodels.Predict |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Prediction.Hostedmodels.Predict |
setHostedModelName(String hostedModelName)
The name of a hosted model.
|
Prediction.Hostedmodels.Predict |
setKey(String key)
API key.
|
Prediction.Hostedmodels.Predict |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Prediction.Hostedmodels.Predict |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Prediction.Hostedmodels.Predict |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Prediction.Hostedmodels.Predict |
setUserIp(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
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Prediction.Hostedmodels.Predict(String hostedModelName, Input 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.
hostedModelName
- The name of a hosted model.content
- the Input
public Prediction.Hostedmodels.Predict setAlt(String alt)
PredictionRequest
setAlt
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setFields(String fields)
PredictionRequest
setFields
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setKey(String key)
PredictionRequest
setKey
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setOauthToken(String oauthToken)
PredictionRequest
setOauthToken
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setPrettyPrint(Boolean prettyPrint)
PredictionRequest
setPrettyPrint
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setQuotaUser(String quotaUser)
PredictionRequest
setQuotaUser
in class PredictionRequest<Output>
public Prediction.Hostedmodels.Predict setUserIp(String userIp)
PredictionRequest
setUserIp
in class PredictionRequest<Output>
public String getHostedModelName()
public Prediction.Hostedmodels.Predict setHostedModelName(String hostedModelName)
public Prediction.Hostedmodels.Predict set(String parameterName, Object value)
set
in class PredictionRequest<Output>