aspectRatio = $aspectRatio; } /** * @return string */ public function getAspectRatio() { return $this->aspectRatio; } /** * Optional. The image output format for generated images. * * @param GoogleCloudAiplatformV1ImageConfigImageOutputOptions $imageOutputOptions */ public function setImageOutputOptions(GoogleCloudAiplatformV1ImageConfigImageOutputOptions $imageOutputOptions) { $this->imageOutputOptions = $imageOutputOptions; } /** * @return GoogleCloudAiplatformV1ImageConfigImageOutputOptions */ public function getImageOutputOptions() { return $this->imageOutputOptions; } /** * Optional. Specifies the size of generated images. Supported values are * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`. * * @param string $imageSize */ public function setImageSize($imageSize) { $this->imageSize = $imageSize; } /** * @return string */ public function getImageSize() { return $this->imageSize; } /** * Optional. Controls whether the model can generate people. * * Accepted values: PERSON_GENERATION_UNSPECIFIED, ALLOW_ALL, ALLOW_ADULT, * ALLOW_NONE * * @param self::PERSON_GENERATION_* $personGeneration */ public function setPersonGeneration($personGeneration) { $this->personGeneration = $personGeneration; } /** * @return self::PERSON_GENERATION_* */ public function getPersonGeneration() { return $this->personGeneration; } /** * Optional. Controls whether prominent people (celebrities) generation is * allowed. If used with personGeneration, personGeneration enum would take * precedence. For instance, if ALLOW_NONE is set, all person generation would * be blocked. If this field is unspecified, the default behavior is to allow * prominent people. * * Accepted values: PROMINENT_PEOPLE_UNSPECIFIED, ALLOW_PROMINENT_PEOPLE, * BLOCK_PROMINENT_PEOPLE * * @param self::PROMINENT_PEOPLE_* $prominentPeople */ public function setProminentPeople($prominentPeople) { $this->prominentPeople = $prominentPeople; } /** * @return self::PROMINENT_PEOPLE_* */ public function getProminentPeople() { return $this->prominentPeople; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1ImageConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ImageConfig');