Class ImageFile
-
- All Implemented Interfaces:
public final class ImageFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ImageFile.Builder
A builder for ImageFile.
public final class
ImageFile.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
.
-
Method Summary
Modifier and Type Method Description final String
fileId()
The File ID of the image in the message content. final Optional<ImageFile.Detail>
detail()
Specifies the detail level of the image if specified by the user. final JsonField<String>
_fileId()
Returns the raw JSON value of fileId. final JsonField<ImageFile.Detail>
_detail()
Returns the raw JSON value of detail. final Map<String, JsonValue>
_additionalProperties()
final ImageFile.Builder
toBuilder()
final ImageFile
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageFile.Builder
builder()
Returns a mutable builder for constructing an instance of ImageFile. -
-
Method Detail
-
fileId
final 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.
-
detail
final Optional<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
.
-
_fileId
final JsonField<String> _fileId()
Returns the raw JSON value of fileId.
Unlike fileId, this method doesn't throw if the JSON field has an unexpected type.
-
_detail
final JsonField<ImageFile.Detail> _detail()
Returns the raw JSON value of detail.
Unlike detail, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImageFile.Builder toBuilder()
-
builder
final static ImageFile.Builder builder()
Returns a mutable builder for constructing an instance of ImageFile.
The following fields are required:
.fileId()
-
-
-
-