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