Class ResponseInputImageContent
-
- All Implemented Interfaces:
public final class ResponseInputImageContent
An image input to the model. Learn about image inputs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputImageContent.Builder
A builder for ResponseInputImageContent.
public final class
ResponseInputImageContent.Detail
The detail level of the image to be sent to the model. One of
high
,low
, orauto
. Defaults toauto
.
-
Method Summary
Modifier and Type Method Description final JsonValue
_type()
The type of the input item. final Optional<ResponseInputImageContent.Detail>
detail()
The detail level of the image to be sent to the model. final Optional<String>
fileId()
The ID of the file to be sent to the model. final Optional<String>
imageUrl()
The URL of the image to be sent to the model. final JsonField<ResponseInputImageContent.Detail>
_detail()
Returns the raw JSON value of detail. final JsonField<String>
_fileId()
Returns the raw JSON value of fileId. final JsonField<String>
_imageUrl()
Returns the raw JSON value of imageUrl. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputImageContent.Builder
toBuilder()
final ResponseInputImageContent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputImageContent.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseInputImageContent. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the input item. Always
input_image
.Expected to always return the following:
JsonValue.from("input_image")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
detail
final Optional<ResponseInputImageContent.Detail> detail()
The detail level of the image to be sent to the model. One of
high
,low
, orauto
. Defaults toauto
.
-
imageUrl
final Optional<String> imageUrl()
The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
-
_detail
final JsonField<ResponseInputImageContent.Detail> _detail()
Returns the raw JSON value of detail.
Unlike detail, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_imageUrl
final JsonField<String> _imageUrl()
Returns the raw JSON value of imageUrl.
Unlike imageUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputImageContent.Builder toBuilder()
-
validate
final ResponseInputImageContent validate()
-
builder
final static ResponseInputImageContent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseInputImageContent.
-
-
-
-