Class BetaResponseInputImageContent
-
- All Implemented Interfaces:
public final class BetaResponseInputImageContentAn image input to the model. Learn about image inputs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputImageContent.BuilderA builder for BetaResponseInputImageContent.
public final classBetaResponseInputImageContent.DetailThe detail level of the image to be sent to the model. One of
high,low,auto, ororiginal. Defaults toauto.public final classBetaResponseInputImageContent.PromptCacheBreakpointMarks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of the input item. final Optional<BetaResponseInputImageContent.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 Optional<BetaResponseInputImageContent.PromptCacheBreakpoint>promptCacheBreakpoint()Marks the exact end of a reusable prompt prefix. final JsonField<BetaResponseInputImageContent.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 JsonField<BetaResponseInputImageContent.PromptCacheBreakpoint>_promptCacheBreakpoint()Returns the raw JSON value of promptCacheBreakpoint. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputImageContent.BuildertoBuilder()final BetaResponseInputImageContentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputImageContent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseInputImageContent. -
-
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<BetaResponseInputImageContent.Detail> detail()
The detail level of the image to be sent to the model. One of
high,low,auto, ororiginal. 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.
-
promptCacheBreakpoint
final Optional<BetaResponseInputImageContent.PromptCacheBreakpoint> promptCacheBreakpoint()
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
_detail
final JsonField<BetaResponseInputImageContent.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.
-
_promptCacheBreakpoint
final JsonField<BetaResponseInputImageContent.PromptCacheBreakpoint> _promptCacheBreakpoint()
Returns the raw JSON value of promptCacheBreakpoint.
Unlike promptCacheBreakpoint, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputImageContent.Builder toBuilder()
-
validate
final BetaResponseInputImageContent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseInputImageContent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseInputImageContent.
-
-
-
-