Class DocumentContent
java.lang.Object
com.google.genai.gaos.models.interactions.DocumentContent
- All Implemented Interfaces:
DecisionInputContent,Content,FunctionResultSubcontent
public class DocumentContent
extends Object
implements Content, FunctionResultSubcontent, DecisionInputContent
DocumentContent
A document content block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDocumentContent(String data, DocumentContentMimeType mimeType, DocumentProcessing processing, MediaResolution resolution, String uri) DocumentContent(String data, DocumentContentMimeType mimeType, String uri) Retained for source and binary compatibility with SDK versions that predateprocessingandresolution. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentContent.Builderbuilder()data()The document content.booleaninthashCode()mimeType()The mime type of the document.How the model processes this document for understanding.toString()type()uri()The URI of the document.The document content.withMimeType(DocumentContentMimeType mimeType) The mime type of the document.withProcessing(DocumentProcessing processing) How the model processes this document for understanding.withResolution(MediaResolution resolution) The URI of the document.
-
Constructor Details
-
DocumentContent
public DocumentContent(@Nullable String data, @Nullable DocumentContentMimeType mimeType, @Nullable DocumentProcessing processing, @Nullable MediaResolution resolution, @Nullable String uri) -
DocumentContent
public DocumentContent() -
DocumentContent
public DocumentContent(@Nullable String data, @Nullable DocumentContentMimeType mimeType, @Nullable String uri) Retained for source and binary compatibility with SDK versions that predateprocessingandresolution. Preferbuilder().
-
-
Method Details
-
data
The document content. -
mimeType
The mime type of the document. -
processing
How the model processes this document for understanding. -
resolution
-
type
- Specified by:
typein interfaceContent- Specified by:
typein interfaceDecisionInputContent- Specified by:
typein interfaceFunctionResultSubcontent
-
uri
The URI of the document. -
builder
-
withData
The document content. -
withMimeType
The mime type of the document. -
withProcessing
How the model processes this document for understanding. -
withResolution
-
withUri
The URI of the document. -
equals
-
hashCode
public int hashCode() -
toString
-