Class ImageFile.Builder
-
- All Implemented Interfaces:
public final class ImageFile.Builder
A builder for ImageFile.
-
-
Method Summary
Modifier and Type Method Description final ImageFile.Builder
fileId(String fileId)
The File ID of the image in the message content. final ImageFile.Builder
fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value. final ImageFile.Builder
detail(ImageFile.Detail detail)
Specifies the detail level of the image if specified by the user. final ImageFile.Builder
detail(JsonField<ImageFile.Detail> detail)
Sets Builder.detail to an arbitrary JSON value. final ImageFile.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ImageFile.Builder
putAdditionalProperty(String key, JsonValue value)
final ImageFile.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ImageFile.Builder
removeAdditionalProperty(String key)
final ImageFile.Builder
removeAllAdditionalProperties(Set<String> keys)
final ImageFile
build()
Returns an immutable instance of ImageFile. -
-
Method Detail
-
fileId
final ImageFile.Builder fileId(String fileId)
The File ID of the image in the message content. Set
purpose="vision"
when uploading the File if you need to later display the file content.
-
fileId
final ImageFile.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.
-
detail
final ImageFile.Builder detail(ImageFile.Detail detail)
Specifies the detail level of the image if specified by the user.
low
uses fewer tokens, you can opt in to high resolution usinghigh
.
-
detail
final ImageFile.Builder detail(JsonField<ImageFile.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.
-
additionalProperties
final ImageFile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageFile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageFile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageFile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageFile.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-