Package org.openapitools.client.model
Class UploadFileData
- java.lang.Object
-
- org.openapitools.client.model.UploadFileData
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class UploadFileData extends Object
UploadFileData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUploadFileData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BASE64_FILEstatic StringSERIALIZED_NAME_CREATE_CHUNKSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_FILE_MIME_TYPEstatic StringSERIALIZED_NAME_FILE_NAMEstatic StringSERIALIZED_NAME_LINKstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_TAG_SETstatic StringSERIALIZED_NAME_TIME_STAMP
-
Constructor Summary
Constructors Constructor Description UploadFileData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadFileDataaddTagSetItem(String tagSetItem)UploadFileDatabase64File(String base64File)UploadFileDatacreateChunks(Boolean createChunks)UploadFileDatadescription(String description)booleanequals(Object o)UploadFileDatafileMimeType(String fileMimeType)UploadFileDatafileName(String fileName)static UploadFileDatafromJson(String jsonString)Create an instance of UploadFileData given an JSON string@NotNull StringgetBase64File()Base64 encoded file.BooleangetCreateChunks()Create chunks is a boolean which determines whether or not to create chunks from the file.StringgetDescription()Description is an optional convience field so you do not have to remember what the file contains or is about.@NotNull StringgetFileMimeType()MIME type of the file being uploaded.@NotNull StringgetFileName()Name of the file being uploaded, including the extension.StringgetLink()Link to the file.ObjectgetMetadata()Metadata is a JSON object which can be used to filter chunks.List<String>getTagSet()Tag set is a comma separated list of tags which will be passed down to the chunks made from the file.StringgetTimeStamp()Time stamp should be an ISO 8601 combined date and time without timezone.inthashCode()UploadFileDatalink(String link)UploadFileDatametadata(Object metadata)voidsetBase64File(String base64File)voidsetCreateChunks(Boolean createChunks)voidsetDescription(String description)voidsetFileMimeType(String fileMimeType)voidsetFileName(String fileName)voidsetLink(String link)voidsetMetadata(Object metadata)voidsetTagSet(List<String> tagSet)voidsetTimeStamp(String timeStamp)UploadFileDatatagSet(List<String> tagSet)UploadFileDatatimeStamp(String timeStamp)StringtoJson()Convert an instance of UploadFileData to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BASE64_FILE
public static final String SERIALIZED_NAME_BASE64_FILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATE_CHUNKS
public static final String SERIALIZED_NAME_CREATE_CHUNKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILE_MIME_TYPE
public static final String SERIALIZED_NAME_FILE_MIME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILE_NAME
public static final String SERIALIZED_NAME_FILE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINK
public static final String SERIALIZED_NAME_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAG_SET
public static final String SERIALIZED_NAME_TAG_SET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIME_STAMP
public static final String SERIALIZED_NAME_TIME_STAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
base64File
public UploadFileData base64File(String base64File)
-
getBase64File
@Nonnull @NotNull public @NotNull String getBase64File()
Base64 encoded file. Convert + to -, / to _, and remove the ending = if present. This is the standard base64url encoding.- Returns:
- base64File
-
setBase64File
public void setBase64File(String base64File)
-
createChunks
public UploadFileData createChunks(Boolean createChunks)
-
getCreateChunks
@Nullable public Boolean getCreateChunks()
Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users.- Returns:
- createChunks
-
setCreateChunks
public void setCreateChunks(Boolean createChunks)
-
description
public UploadFileData description(String description)
-
getDescription
@Nullable public String getDescription()
Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
fileMimeType
public UploadFileData fileMimeType(String fileMimeType)
-
getFileMimeType
@Nonnull @NotNull public @NotNull String getFileMimeType()
MIME type of the file being uploaded.- Returns:
- fileMimeType
-
setFileMimeType
public void setFileMimeType(String fileMimeType)
-
fileName
public UploadFileData fileName(String fileName)
-
getFileName
@Nonnull @NotNull public @NotNull String getFileName()
Name of the file being uploaded, including the extension.- Returns:
- fileName
-
setFileName
public void setFileName(String fileName)
-
link
public UploadFileData link(String link)
-
getLink
@Nullable public String getLink()
Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.- Returns:
- link
-
setLink
public void setLink(String link)
-
metadata
public UploadFileData metadata(Object metadata)
-
getMetadata
@Nullable public Object getMetadata()
Metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. Will be passed down to the file's chunks.- Returns:
- metadata
-
setMetadata
public void setMetadata(Object metadata)
-
tagSet
public UploadFileData tagSet(List<String> tagSet)
-
addTagSetItem
public UploadFileData addTagSetItem(String tagSetItem)
-
getTagSet
@Nullable public List<String> getTagSet()
Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them.- Returns:
- tagSet
-
timeStamp
public UploadFileData timeStamp(String timeStamp)
-
getTimeStamp
@Nullable public String getTimeStamp()
Time stamp should be an ISO 8601 combined date and time without timezone. Time_stamp is used for time window filtering and recency-biasing search results. Will be passed down to the file's chunks.- Returns:
- timeStamp
-
setTimeStamp
public void setTimeStamp(String timeStamp)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UploadFileData
-
fromJson
public static UploadFileData fromJson(String jsonString) throws IOException
Create an instance of UploadFileData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UploadFileData
- Throws:
IOException- if the JSON string is invalid with respect to UploadFileData
-
toJson
public String toJson()
Convert an instance of UploadFileData to an JSON string- Returns:
- JSON string
-
-