Class GoogleGenAiImageOptions
java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageOptions
- All Implemented Interfaces:
ImageOptions,ModelOptions
Options for the Image supported by the GenAI SDK
- Since:
- 2.0.1
- Author:
- Olivier Le Quellec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGoogleGenAiImageOptions(@Nullable String model, @Nullable Integer n, @Nullable String aspectRatio, @Nullable Integer seed, @Nullable GoogleGenAiImageOptions.SafetyFilterLevel safetyFilterLevel, @Nullable GoogleGenAiImageOptions.PersonGeneration personGeneration, @Nullable String outputMimeType, @Nullable Integer outputCompressionQuality, @Nullable Map<String, String> labels, @Nullable String imageSize, @Nullable Float temperature, @Nullable Float topP, @Nullable Float topK, @Nullable Integer maxOutputTokens) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()boolean@Nullable String@Nullable IntegerImage height is not directly configurable UsegetAspectRatio()orgetImageSize()instead.@Nullable String@Nullable Integer@Nullable StringgetModel()@Nullable IntegergetN()@Nullable Integer@Nullable String@Nullable GoogleGenAiImageOptions.PersonGeneration@Nullable String@Nullable IntegergetSeed()@Nullable StringgetStyle()@Nullable Float@Nullable FloatgetTopK()@Nullable FloatgetTopP()@Nullable IntegergetWidth()Image width is not directly configurable UsegetAspectRatio()orgetImageSize()instead.inthashCode()
-
Field Details
-
DEFAULT_MODEL_NAME
-
-
Constructor Details
-
GoogleGenAiImageOptions
protected GoogleGenAiImageOptions(@Nullable String model, @Nullable Integer n, @Nullable String aspectRatio, @Nullable Integer seed, @Nullable GoogleGenAiImageOptions.SafetyFilterLevel safetyFilterLevel, @Nullable GoogleGenAiImageOptions.PersonGeneration personGeneration, @Nullable String outputMimeType, @Nullable Integer outputCompressionQuality, @Nullable Map<String, String> labels, @Nullable String imageSize, @Nullable Float temperature, @Nullable Float topP, @Nullable Float topK, @Nullable Integer maxOutputTokens)
-
-
Method Details
-
builder
-
getModel
- Specified by:
getModelin interfaceImageOptions
-
getN
- Specified by:
getNin interfaceImageOptions
-
getWidth
Image width is not directly configurable UsegetAspectRatio()orgetImageSize()instead.- Specified by:
getWidthin interfaceImageOptions- Returns:
- always
null
-
getHeight
Image height is not directly configurable UsegetAspectRatio()orgetImageSize()instead.- Specified by:
getHeightin interfaceImageOptions- Returns:
- always
null
-
getResponseFormat
- Specified by:
getResponseFormatin interfaceImageOptions
-
getStyle
- Specified by:
getStylein interfaceImageOptions
-
getAspectRatio
-
getSeed
-
getSafetyFilterLevel
-
getPersonGeneration
-
getOutputMimeType
-
getOutputCompressionQuality
-
getLabels
-
getImageSize
-
getTemperature
-
getTopP
-
getTopK
-
getMaxOutputTokens
-
equals
-
hashCode
public int hashCode()
-