Class AuthConfigGoogleServiceAccountConfig
-
- All Implemented Interfaces:
public abstract class AuthConfigGoogleServiceAccountConfig extends JsonSerializable
Config for Google Service Account Authentication. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAuthConfigGoogleServiceAccountConfig.BuilderBuilder for AuthConfigGoogleServiceAccountConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AuthConfigGoogleServiceAccountConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>serviceAccount()Optional. static AuthConfigGoogleServiceAccountConfig.Builderbuilder()Instantiates a builder for AuthConfigGoogleServiceAccountConfig. abstract AuthConfigGoogleServiceAccountConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AuthConfigGoogleServiceAccountConfigfromJson(String jsonString)Deserializes a JSON string to a AuthConfigGoogleServiceAccountConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
serviceAccount
abstract Optional<String> serviceAccount()
Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
-
builder
static AuthConfigGoogleServiceAccountConfig.Builder builder()
Instantiates a builder for AuthConfigGoogleServiceAccountConfig.
-
toBuilder
abstract AuthConfigGoogleServiceAccountConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AuthConfigGoogleServiceAccountConfig fromJson(String jsonString)
Deserializes a JSON string to a AuthConfigGoogleServiceAccountConfig object.
-
-
-
-