Class ResponseInputFileContent.Builder
-
- All Implemented Interfaces:
public final class ResponseInputFileContent.BuilderA builder for ResponseInputFileContent.
-
-
Method Summary
-
-
Method Detail
-
type
final ResponseInputFileContent.Builder type(JsonValue type)
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("input_file")This method is primarily for setting the field to an undocumented or not yet supported value.
-
detail
final ResponseInputFileContent.Builder detail(ResponseInputFileContent.Detail detail)
The detail level of the file to be sent to the model. Use
autoto let the system select the detail level; for GPT-5.6 and later models,autouses high-quality rendering, which may increase input token usage. Uselowfor lower-cost rendering, orhighto render the file at higher quality. Defaults toauto.
-
detail
final ResponseInputFileContent.Builder detail(JsonField<ResponseInputFileContent.Detail> detail)
Sets Builder.detail to an arbitrary JSON value.
You should usually call Builder.detail with a well-typed Detail value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileData
final ResponseInputFileContent.Builder fileData(String fileData)
The base64-encoded data of the file to be sent to the model.
-
fileData
final ResponseInputFileContent.Builder fileData(Optional<String> fileData)
Alias for calling Builder.fileData with
fileData.orElse(null).
-
fileData
final ResponseInputFileContent.Builder fileData(JsonField<String> fileData)
Sets Builder.fileData to an arbitrary JSON value.
You should usually call Builder.fileData with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileId
final ResponseInputFileContent.Builder fileId(String fileId)
The ID of the file to be sent to the model.
-
fileId
final ResponseInputFileContent.Builder fileId(Optional<String> fileId)
Alias for calling Builder.fileId with
fileId.orElse(null).
-
fileId
final ResponseInputFileContent.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileUrl
final ResponseInputFileContent.Builder fileUrl(String fileUrl)
The URL of the file to be sent to the model.
-
fileUrl
final ResponseInputFileContent.Builder fileUrl(Optional<String> fileUrl)
Alias for calling Builder.fileUrl with
fileUrl.orElse(null).
-
fileUrl
final ResponseInputFileContent.Builder fileUrl(JsonField<String> fileUrl)
Sets Builder.fileUrl to an arbitrary JSON value.
You should usually call Builder.fileUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filename
final ResponseInputFileContent.Builder filename(String filename)
The name of the file to be sent to the model.
-
filename
final ResponseInputFileContent.Builder filename(Optional<String> filename)
Alias for calling Builder.filename with
filename.orElse(null).
-
filename
final ResponseInputFileContent.Builder filename(JsonField<String> filename)
Sets Builder.filename to an arbitrary JSON value.
You should usually call Builder.filename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptCacheBreakpoint
final ResponseInputFileContent.Builder promptCacheBreakpoint(ResponseInputFileContent.PromptCacheBreakpoint promptCacheBreakpoint)
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
promptCacheBreakpoint
final ResponseInputFileContent.Builder promptCacheBreakpoint(Optional<ResponseInputFileContent.PromptCacheBreakpoint> promptCacheBreakpoint)
Alias for calling Builder.promptCacheBreakpoint with
promptCacheBreakpoint.orElse(null).
-
promptCacheBreakpoint
final ResponseInputFileContent.Builder promptCacheBreakpoint(JsonField<ResponseInputFileContent.PromptCacheBreakpoint> promptCacheBreakpoint)
Sets Builder.promptCacheBreakpoint to an arbitrary JSON value.
You should usually call Builder.promptCacheBreakpoint with a well-typed PromptCacheBreakpoint value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputFileContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputFileContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputFileContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputFileContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputFileContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputFileContent build()
Returns an immutable instance of ResponseInputFileContent.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-