Class BetaImageTransformationsParam.Builder
-
- All Implemented Interfaces:
public final class BetaImageTransformationsParam.BuilderA builder for BetaImageTransformationsParam.
-
-
Method Summary
-
-
Method Detail
-
oversizedImage
final BetaImageTransformationsParam.Builder oversizedImage(BetaImageTransformationsParam.OversizedImage oversizedImage)
What the server does when this image exceeds the model's maximum image size.
"downsize"(the default) scales the image down to fit, which changes the dimensions the model observes without telling you."error"instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down.
-
oversizedImage
final BetaImageTransformationsParam.Builder oversizedImage(JsonField<BetaImageTransformationsParam.OversizedImage> oversizedImage)
Sets Builder.oversizedImage to an arbitrary JSON value.
You should usually call Builder.oversizedImage with a well-typed OversizedImage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaImageTransformationsParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaImageTransformationsParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaImageTransformationsParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaImageTransformationsParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaImageTransformationsParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaImageTransformationsParam build()
Returns an immutable instance of BetaImageTransformationsParam.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-