Package com.google.genai.types
Class AuthConfigOauthConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AuthConfigOauthConfig
Config for user oauth.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for AuthConfigOauthConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccess token for extension endpoint.builder()
Instantiates a builder for AuthConfigOauthConfig.static AuthConfigOauthConfig
Deserializes a JSON string to a AuthConfigOauthConfig object.The service account used to generate access tokens for executing the Extension.abstract AuthConfigOauthConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
AuthConfigOauthConfig
public AuthConfigOauthConfig()
-
-
Method Details
-
accessToken
Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. -
serviceAccount
The service account used to generate access tokens for executing the Extension. - 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 provided service account. -
builder
Instantiates a builder for AuthConfigOauthConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AuthConfigOauthConfig object.
-