Package com.google.genai.types
Class Document
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Document
A Document is a collection of Chunks.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Document.Builderbuilder()Instantiates a builder for Document.Output only.abstract Optional<List<CustomMetadata>>Optional.The human-readable display name for the Document.static DocumentDeserializes a JSON string to a Document object.mimeType()The MIME type of the Document.name()The resource name of the Document.The size of the Document in bytes.abstract Optional<DocumentState>state()The current state of the Document.abstract Document.BuilderCreates a builder with the same values as this instance.Output only.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
name
The resource name of the Document. Example: fileSearchStores/file-search-store-foo/documents/documents-bar -
displayName
The human-readable display name for the Document. -
state
The current state of the Document. -
sizeBytes
The size of the Document in bytes. -
mimeType
The MIME type of the Document. -
createTime
Output only. The Timestamp of when the `Document` was created. -
customMetadata
Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. -
updateTime
Output only. The Timestamp of when the `Document` was last updated. -
builder
Instantiates a builder for Document. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Document object.
-