Package com.google.genai.types
Class ApiAuth
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ApiAuth
The generic reusable api auth config. Deprecated. Please use AuthConfig
(google/cloud/aiplatform/master/auth.proto) instead.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<ApiAuthApiKeyConfig>
The API secret.static ApiAuth.Builder
builder()
Instantiates a builder for ApiAuth.static ApiAuth
Deserializes a JSON string to a ApiAuth object.abstract ApiAuth.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ApiAuth
public ApiAuth()
-
-
Method Details
-
apiKeyConfig
The API secret. -
builder
Instantiates a builder for ApiAuth. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ApiAuth object.
-