public interface ImageConfigOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAspectRatio()
public abstract String 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"
optional string aspect_ratio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The aspectRatio. |
getAspectRatioBytes()
public abstract ByteString getAspectRatioBytes()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"
optional string aspect_ratio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for aspectRatio. |
getImageOutputOptions()
public abstract ImageConfig.ImageOutputOptions getImageOutputOptions()Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageConfig.ImageOutputOptions |
The imageOutputOptions. |
getImageOutputOptionsOrBuilder()
public abstract ImageConfig.ImageOutputOptionsOrBuilder getImageOutputOptionsOrBuilder()Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageConfig.ImageOutputOptionsOrBuilder |
|
getImageSize()
public abstract String getImageSize() Optional. Specifies the size of generated images. Supported values are
1K, 2K, 4K. If not specified, the model will use default value 1K.
optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The imageSize. |
getImageSizeBytes()
public abstract ByteString getImageSizeBytes() Optional. Specifies the size of generated images. Supported values are
1K, 2K, 4K. If not specified, the model will use default value 1K.
optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for imageSize. |
getPersonGeneration()
public abstract ImageConfig.PersonGeneration getPersonGeneration()Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageConfig.PersonGeneration |
The personGeneration. |
getPersonGenerationValue()
public abstract int getPersonGenerationValue()Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for personGeneration. |
hasAspectRatio()
public abstract boolean hasAspectRatio()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"
optional string aspect_ratio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the aspectRatio field is set. |
hasImageOutputOptions()
public abstract boolean hasImageOutputOptions()Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageOutputOptions field is set. |
hasImageSize()
public abstract boolean hasImageSize() Optional. Specifies the size of generated images. Supported values are
1K, 2K, 4K. If not specified, the model will use default value 1K.
optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageSize field is set. |
hasPersonGeneration()
public abstract boolean hasPersonGeneration()Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the personGeneration field is set. |