Package com.google.genai.types
Class ApiKeyConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ApiKeyConfig
Config for authentication with API key.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe API key to be used in the request directly.static ApiKeyConfig.Builder
builder()
Instantiates a builder for ApiKeyConfig.static ApiKeyConfig
Deserializes a JSON string to a ApiKeyConfig object.abstract ApiKeyConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
ApiKeyConfig
public ApiKeyConfig()
-
-
Method Details
-
apiKeyString
The API key to be used in the request directly. -
builder
Instantiates a builder for ApiKeyConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ApiKeyConfig object.
-