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. |
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. |