Class GoogleGenAiImageConnectionDetails.Builder
java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageConnectionDetails.Builder
- Enclosing class:
- GoogleGenAiImageConnectionDetails
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()credentials(@Nullable com.google.auth.oauth2.GoogleCredentials credentials) Sets theGoogleCredentialsto use for Vertex AI mode authentication.genAiClient(@Nullable com.google.genai.Client genAiClient)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
projectId
-
location
-
apiKey
-
genAiClient
public GoogleGenAiImageConnectionDetails.Builder genAiClient(@Nullable com.google.genai.Client genAiClient) -
credentials
public GoogleGenAiImageConnectionDetails.Builder credentials(@Nullable com.google.auth.oauth2.GoogleCredentials credentials) Sets theGoogleCredentialsto use for Vertex AI mode authentication.- Parameters:
credentials- the Google credentials- Returns:
- this builder
-
build
-