Class GoogleGenAiImageModel.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiImageModel.Builder
- Enclosing class:
GoogleGenAiImageModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiEndpoint(String apiEndpoint) aspectRatio(String aspectRatio) build()client(com.google.genai.Client client) customHeaders(Map<String, String> customHeaders) googleCredentials(com.google.auth.oauth2.GoogleCredentials googleCredentials) logRequests(Boolean logRequests) logRequestsAndResponses(Boolean logRequestsAndResponses) logResponses(Boolean logResponses) maxRetries(Integer maxRetries) personGeneration(String personGeneration) safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) useGoogleSearchGrounding(Boolean useGoogleSearchGrounding)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
apiKey
-
googleCredentials
public GoogleGenAiImageModel.Builder googleCredentials(com.google.auth.oauth2.GoogleCredentials googleCredentials) -
projectId
-
location
-
timeout
-
modelName
-
maxRetries
-
safetySettings
public GoogleGenAiImageModel.Builder safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) -
useGoogleSearchGrounding
-
aspectRatio
-
imageSize
-
personGeneration
-
logRequests
-
logResponses
-
logRequestsAndResponses
-
apiEndpoint
-
customHeaders
-
labels
-
build
-