Class ImageFile
-
- All Implemented Interfaces:
public final class ImageFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageFile.BuilderA builder for ImageFile.
public final classImageFile.DetailSpecifies the detail level of the image if specified by the user.
lowuses fewer tokens, you can opt in to high resolution usinghigh.
-
Method Summary
Modifier and Type Method Description final StringfileId()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.BuildertoBuilder()final ImageFilevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageFile.Builderbuilder()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.
lowuses 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()
-
-
-
-