Class FileRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class FileRetrieveResponse.Builder
A builder for FileRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final FileRetrieveResponse.Builder id(String id)
Unique identifier for the file.
-
id
final FileRetrieveResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
bytes
final FileRetrieveResponse.Builder bytes(Long bytes)
Size of the file in bytes.
-
bytes
final FileRetrieveResponse.Builder bytes(JsonField<Long> bytes)
Sets Builder.bytes to an arbitrary JSON value.
You should usually call Builder.bytes with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
containerId
final FileRetrieveResponse.Builder containerId(String containerId)
The container this file belongs to.
-
containerId
final FileRetrieveResponse.Builder containerId(JsonField<String> containerId)
Sets Builder.containerId to an arbitrary JSON value.
You should usually call Builder.containerId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final FileRetrieveResponse.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) when the file was created.
-
createdAt
final FileRetrieveResponse.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final FileRetrieveResponse.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("container.file")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final FileRetrieveResponse.Builder path(String path)
Path of the file in the container.
-
path
final FileRetrieveResponse.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final FileRetrieveResponse.Builder source(String source)
Source of the file (e.g.,
user
,assistant
).
-
source
final FileRetrieveResponse.Builder source(JsonField<String> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FileRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileRetrieveResponse build()
Returns an immutable instance of FileRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .bytes() .containerId() .createdAt() .path() .source()
-
-
-
-