Class ImageTransformationsParam.Builder
-
- All Implemented Interfaces:
public final class ImageTransformationsParam.BuilderA builder for ImageTransformationsParam.
-
-
Method Summary
Modifier and Type Method Description final ImageTransformationsParam.BuilderoversizedImage(ImageTransformationsParam.OversizedImage oversizedImage)What the server does when this image exceeds the model's maximum image size. final ImageTransformationsParam.BuilderoversizedImage(JsonField<ImageTransformationsParam.OversizedImage> oversizedImage)Sets Builder.oversizedImage to an arbitrary JSON value. final ImageTransformationsParam.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ImageTransformationsParam.BuilderputAdditionalProperty(String key, JsonValue value)final ImageTransformationsParam.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ImageTransformationsParam.BuilderremoveAdditionalProperty(String key)final ImageTransformationsParam.BuilderremoveAllAdditionalProperties(Set<String> keys)final ImageTransformationsParambuild()Returns an immutable instance of ImageTransformationsParam. -
-
Method Detail
-
oversizedImage
final ImageTransformationsParam.Builder oversizedImage(ImageTransformationsParam.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 ImageTransformationsParam.Builder oversizedImage(JsonField<ImageTransformationsParam.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 ImageTransformationsParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageTransformationsParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageTransformationsParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageTransformationsParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageTransformationsParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageTransformationsParam build()
Returns an immutable instance of ImageTransformationsParam.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-