Record Class VectorStore
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.VectorStore
public record VectorStore(String id, long createdAt, String name, long usageBytes, VectorStore.FileCounts fileCounts, String status, ExpiresAfter expiresAfter, Long expiresAt, Long lastActiveAt, Map<String,String> metadata)
extends Record
A vector store is a collection of processed files can be used by the file_search tool.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionVectorStore
(String id, long createdAt, String name, long usageBytes, VectorStore.FileCounts fileCounts, String status, ExpiresAfter expiresAfter, Long expiresAt, Long lastActiveAt, Map<String, String> metadata) Creates an instance of aVectorStore
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiresAfter
record component.Returns the value of theexpiresAt
record component.Returns the value of thefileCounts
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of thelastActiveAt
record component.metadata()
Returns the value of themetadata
record component.name()
Returns the value of thename
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of theusageBytes
record component.
-
Constructor Details
-
VectorStore
public VectorStore(String id, long createdAt, String name, long usageBytes, VectorStore.FileCounts fileCounts, String status, ExpiresAfter expiresAfter, Long expiresAt, Long lastActiveAt, Map<String, String> metadata) Creates an instance of aVectorStore
record class.- Parameters:
id
- the value for theid
record componentcreatedAt
- the value for thecreatedAt
record componentname
- the value for thename
record componentusageBytes
- the value for theusageBytes
record componentfileCounts
- the value for thefileCounts
record componentstatus
- the value for thestatus
record componentexpiresAfter
- the value for theexpiresAfter
record componentexpiresAt
- the value for theexpiresAt
record componentlastActiveAt
- the value for thelastActiveAt
record componentmetadata
- the value for themetadata
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
createdAt
public long createdAt()Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
usageBytes
public long usageBytes()Returns the value of theusageBytes
record component.- Returns:
- the value of the
usageBytes
record component
-
fileCounts
Returns the value of thefileCounts
record component.- Returns:
- the value of the
fileCounts
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
expiresAfter
Returns the value of theexpiresAfter
record component.- Returns:
- the value of the
expiresAfter
record component
-
expiresAt
Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
lastActiveAt
Returns the value of thelastActiveAt
record component.- Returns:
- the value of the
lastActiveAt
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-