Class ImageFile.Builder
-
- All Implemented Interfaces:
public final class ImageFile.BuilderA builder for ImageFile.
-
-
Method Summary
Modifier and Type Method Description final ImageFile.BuilderfileId(String fileId)The File ID of the image in the message content. final ImageFile.BuilderfileId(JsonField<String> fileId)Sets Builder.fileId to an arbitrary JSON value. final ImageFile.Builderdetail(ImageFile.Detail detail)Specifies the detail level of the image if specified by the user. final ImageFile.Builderdetail(JsonField<ImageFile.Detail> detail)Sets Builder.detail to an arbitrary JSON value. final ImageFile.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ImageFile.BuilderputAdditionalProperty(String key, JsonValue value)final ImageFile.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ImageFile.BuilderremoveAdditionalProperty(String key)final ImageFile.BuilderremoveAllAdditionalProperties(Set<String> keys)final ImageFilebuild()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.
lowuses 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)
-
-
-
-