Package com.google.genai.types
Class ScribbleImage
-
- All Implemented Interfaces:
public abstract class ScribbleImage extends JsonSerializable
An image mask representing a brush scribble.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classScribbleImage.BuilderBuilder for ScribbleImage.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ScribbleImage()
-
Method Summary
Modifier and Type Method Description abstract Optional<Image>image()The brush scribble to guide segmentation. static ScribbleImage.Builderbuilder()Instantiates a builder for ScribbleImage. abstract ScribbleImage.BuildertoBuilder()Creates a builder with the same values as this instance. static ScribbleImagefromJson(String jsonString)Deserializes a JSON string to a ScribbleImage object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
image
abstract Optional<Image> image()
The brush scribble to guide segmentation. Valid for the interactive mode.
-
builder
static ScribbleImage.Builder builder()
Instantiates a builder for ScribbleImage.
-
toBuilder
abstract ScribbleImage.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ScribbleImage fromJson(String jsonString)
Deserializes a JSON string to a ScribbleImage object.
-
-
-
-