Google Cloud Ai Platform V1 Client - Class ImageConfig (1.60.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.

↳ image_output_options
ImageConfig\ImageOutputOptions

Optional. The image output format for generated images.

↳ 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"

↳ person_generation
int

Optional. Controls whether the model can generate people.

↳ image_size
string

Optional. Specifies the size of generated images. Supported values are 1K , 2K , 4K . If not specified, the model will use default value 1K .

getImageOutputOptions

Optional. The image output format for generated images.

Returns
Type
Description

hasImageOutputOptions

clearImageOutputOptions

setImageOutputOptions

Optional. The image output format for generated images.

Parameter
Name
Description
Returns
Type
Description
$this

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

getPersonGeneration

Optional. Controls whether the model can generate people.

Returns
Type
Description
int

hasPersonGeneration

clearPersonGeneration

setPersonGeneration

Optional. Controls whether the model can generate people.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getImageSize

Optional. Specifies the size of generated images. Supported values are 1K , 2K , 4K . If not specified, the model will use default value 1K .

Returns
Type
Description
string

hasImageSize

clearImageSize

setImageSize

Optional. Specifies the size of generated images. Supported values are 1K , 2K , 4K . If not specified, the model will use default value 1K .

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: