target.apidocs.com.google.api.services.firebaseml.v2beta.FirebaseML.Projects.Locations.Publishers.Models.GenerateContent.html Maven / Gradle / Ivy
The newest version!
FirebaseML.Projects.Locations.Publishers.Models.GenerateContent (Firebase ML API v2beta-rev20241217-2.0.0)
com.google.api.services.firebaseml.v2beta
Class FirebaseML.Projects.Locations.Publishers.Models.GenerateContent
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.firebaseml.v2beta.FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
- com.google.api.services.firebaseml.v2beta.FirebaseML.Projects.Locations.Publishers.Models.GenerateContent
-
- Enclosing class:
- FirebaseML.Projects.Locations.Publishers.Models
public class FirebaseML.Projects.Locations.Publishers.Models.GenerateContent
extends FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
GenerateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
Generate content with multimodal inputs.
-
Method Summary
-
Methods inherited from class com.google.api.services.firebaseml.v2beta.FirebaseMLRequest
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
GenerateContent
protected GenerateContent(String model,
GoogleCloudAiplatformV1beta1GenerateContentRequest content)
Generate content with multimodal inputs.
Create a request for the method "models.generateContent".
This request holds the parameters needed by the the firebaseml server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation. GenerateContent#initialize(com.google.api.client.googleapis.services.Abst
ractGoogleClientRequest)
must be called to initialize this instance immediately after invoking
the constructor.
- Parameters:
model
- Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher
model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
content
- the GoogleCloudAiplatformV1beta1GenerateContentRequest
- Since:
- 1.13
-
Method Detail
-
set$Xgafv
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent set$Xgafv(String $Xgafv)
Description copied from class: FirebaseMLRequest
V1 error format.
- Overrides:
set$Xgafv
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setAccessToken
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setAccessToken(String accessToken)
Description copied from class: FirebaseMLRequest
OAuth access token.
- Overrides:
setAccessToken
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setAlt
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setAlt(String alt)
Description copied from class: FirebaseMLRequest
Data format for response.
- Overrides:
setAlt
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setCallback
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setCallback(String callback)
Description copied from class: FirebaseMLRequest
JSONP
- Overrides:
setCallback
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setFields
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setFields(String fields)
Description copied from class: FirebaseMLRequest
Selector specifying which fields to include in a partial response.
- Overrides:
setFields
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setKey
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setKey(String key)
Description copied from class: FirebaseMLRequest
API key. Your API key identifies your project and provides you with API access, quota, and
reports. Required unless you provide an OAuth 2.0 token.
- Overrides:
setKey
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setOauthToken
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setOauthToken(String oauthToken)
Description copied from class: FirebaseMLRequest
OAuth 2.0 token for the current user.
- Overrides:
setOauthToken
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setPrettyPrint
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setPrettyPrint(Boolean prettyPrint)
Description copied from class: FirebaseMLRequest
Returns response with indentations and line breaks.
- Overrides:
setPrettyPrint
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setQuotaUser
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setQuotaUser(String quotaUser)
Description copied from class: FirebaseMLRequest
Available to use for quota purposes for server-side applications. Can be any arbitrary string
assigned to a user, but should not exceed 40 characters.
- Overrides:
setQuotaUser
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setUploadType
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setUploadType(String uploadType)
Description copied from class: FirebaseMLRequest
Legacy upload protocol for media (e.g. "media", "multipart").
- Overrides:
setUploadType
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
setUploadProtocol
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setUploadProtocol(String uploadProtocol)
Description copied from class: FirebaseMLRequest
Upload protocol for media (e.g. "raw", "multipart").
- Overrides:
setUploadProtocol
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
-
getModel
public String getModel()
Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher
model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint
format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
-
setModel
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent setModel(String model)
Required. The fully qualified name of the publisher model or tuned model endpoint to
use. Publisher model format:
`projects/{project}/locations/{location}/publishers/models` Tuned model endpoint
format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
-
set
public FirebaseML.Projects.Locations.Publishers.Models.GenerateContent set(String parameterName,
Object value)
- Overrides:
set
in class FirebaseMLRequest<GoogleCloudAiplatformV1beta1GenerateContentResponse>
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy