Package com.google.genai.types
Class SegmentImageParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SegmentImageParameters
The parameters for segmenting an image.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SegmentImageParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for SegmentImageParameters.abstract Optional<SegmentImageConfig>
config()
Configuration for image segmentation.static SegmentImageParameters
Deserializes a JSON string to a SegmentImageParameters object.model()
ID of the model to use.abstract Optional<SegmentImageSource>
source()
A set of source input(s) for image segmentation.abstract SegmentImageParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SegmentImageParameters
public SegmentImageParameters()
-
-
Method Details
-
model
ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. -
source
A set of source input(s) for image segmentation. -
config
Configuration for image segmentation. -
builder
Instantiates a builder for SegmentImageParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SegmentImageParameters object.
-