Class FileCreateResponse.Builder
-
- All Implemented Interfaces:
public final class FileCreateResponse.Builder
A builder for FileCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final FileCreateResponse.Builder id(String id)
Unique identifier for the file.
-
id
final FileCreateResponse.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 FileCreateResponse.Builder bytes(Long bytes)
Size of the file in bytes.
-
bytes
final FileCreateResponse.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 FileCreateResponse.Builder containerId(String containerId)
The container this file belongs to.
-
containerId
final FileCreateResponse.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 FileCreateResponse.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) when the file was created.
-
createdAt
final FileCreateResponse.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 FileCreateResponse.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 FileCreateResponse.Builder path(String path)
Path of the file in the container.
-
path
final FileCreateResponse.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 FileCreateResponse.Builder source(String source)
Source of the file (e.g.,
user
,assistant
).
-
source
final FileCreateResponse.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 FileCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileCreateResponse build()
Returns an immutable instance of FileCreateResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .bytes() .containerId() .createdAt() .path() .source()
-
-
-
-