Google Cloud Ai Platform V1 Client - Class ImageConfig (1.41.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ImageConfig.

Config for image generation features.

Generated from protobuf message google.cloud.aiplatform.v1.ImageConfig

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ aspect_ratio string

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: "1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

getAspectRatio

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: "1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

Returns
Type Description
string

hasAspectRatio

clearAspectRatio

setAspectRatio

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: "1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

Parameter
Name Description
var string
Returns
Type Description
$this