Class FileContentPageResponse
-
- All Implemented Interfaces:
public final class FileContentPageResponse
Represents the parsed content of a vector store file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileContentPageResponse.Builder
A builder for FileContentPageResponse.
-
Method Summary
Modifier and Type Method Description final List<FileContentResponse>
data()
Parsed content of the file. final Boolean
hasMore()
Indicates if there are more content pages to fetch. final Optional<String>
nextPage()
The token for the next page, if any. final JsonValue
_object_()
The object type, which is always vector_store.file_content.page
Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("vector_store.file_content.page")
final JsonField<List<FileContentResponse>>
_data()
Returns the raw JSON value of data. final JsonField<Boolean>
_hasMore()
Returns the raw JSON value of hasMore. final JsonField<String>
_nextPage()
Returns the raw JSON value of nextPage. final Map<String, JsonValue>
_additionalProperties()
final FileContentPageResponse.Builder
toBuilder()
final FileContentPageResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileContentPageResponse.Builder
builder()
Returns a mutable builder for constructing an instance of FileContentPageResponse. -
-
Method Detail
-
data
final List<FileContentResponse> data()
Parsed content of the file.
-
_object_
final JsonValue _object_()
The object type, which is always
vector_store.file_content.page
Expected to always return the following:
JsonValue.from("vector_store.file_content.page")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<List<FileContentResponse>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_hasMore
final JsonField<Boolean> _hasMore()
Returns the raw JSON value of hasMore.
Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.
-
_nextPage
final JsonField<String> _nextPage()
Returns the raw JSON value of nextPage.
Unlike nextPage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileContentPageResponse.Builder toBuilder()
-
validate
final FileContentPageResponse validate()
-
builder
final static FileContentPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of FileContentPageResponse.
The following fields are required:
.data() .hasMore() .nextPage()
-
-
-
-