Class ImageContent
java.lang.Object
com.google.genai.gaos.models.interactions.ImageContent
- All Implemented Interfaces:
Content,FunctionResultSubcontent,ThoughtSummaryContent
public class ImageContent
extends Object
implements FunctionResultSubcontent, Content, ThoughtSummaryContent
ImageContent
An image content block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionImageContent(String data, ImageContentMimeType mimeType, MediaResolution resolution, String uri) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageContent.Builderbuilder()data()The image content.booleaninthashCode()mimeType()The mime type of the image.toString()type()uri()The URI of the image.The image content.withMimeType(ImageContentMimeType mimeType) The mime type of the image.withResolution(MediaResolution resolution) The URI of the image.
-
Constructor Details
-
ImageContent
public ImageContent(@Nullable String data, @Nullable ImageContentMimeType mimeType, @Nullable MediaResolution resolution, @Nullable String uri) -
ImageContent
public ImageContent()
-
-
Method Details
-
data
The image content. -
mimeType
The mime type of the image. -
resolution
-
type
- Specified by:
typein interfaceContent- Specified by:
typein interfaceFunctionResultSubcontent- Specified by:
typein interfaceThoughtSummaryContent
-
uri
The URI of the image. -
builder
-
withData
The image content. -
withMimeType
The mime type of the image. -
withResolution
-
withUri
The URI of the image. -
equals
-
hashCode
public int hashCode() -
toString
-