Class ResponseInputImage.Builder
-
- All Implemented Interfaces:
public final class ResponseInputImage.Builder
A builder for ResponseInputImage.
-
-
Method Summary
-
-
Method Detail
-
detail
final ResponseInputImage.Builder detail(ResponseInputImage.Detail detail)
The detail level of the image to be sent to the model. One of
high
,low
, orauto
. Defaults toauto
.
-
detail
final ResponseInputImage.Builder detail(JsonField<ResponseInputImage.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.
-
type
final ResponseInputImage.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("input_image")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileId
final ResponseInputImage.Builder fileId(String fileId)
The ID of the file to be sent to the model.
-
fileId
final ResponseInputImage.Builder fileId(Optional<String> fileId)
Alias for calling Builder.fileId with
fileId.orElse(null)
.
-
fileId
final ResponseInputImage.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.
-
imageUrl
final ResponseInputImage.Builder imageUrl(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.
-
imageUrl
final ResponseInputImage.Builder imageUrl(Optional<String> imageUrl)
Alias for calling Builder.imageUrl with
imageUrl.orElse(null)
.
-
imageUrl
final ResponseInputImage.Builder imageUrl(JsonField<String> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputImage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputImage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputImage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputImage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputImage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputImage build()
Returns an immutable instance of ResponseInputImage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.detail()
-
-
-
-