public static final class ImageConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder> implements ImageConfigOrBuilder
Config for image generation features.Protobuf type
google.cloud.aiplatform.v1.ImageConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>public ImageConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>public ImageConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImageConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImageConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImageConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageConfig.Builder>public ImageConfig.Builder mergeFrom(ImageConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>public ImageConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageConfig.Builder>IOExceptionpublic 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];
hasImageOutputOptions in interface ImageConfigOrBuilderpublic 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];
getImageOutputOptions in interface ImageConfigOrBuilderpublic ImageConfig.Builder setImageOutputOptions(ImageConfig.ImageOutputOptions value)
Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
public ImageConfig.Builder setImageOutputOptions(ImageConfig.ImageOutputOptions.Builder builderForValue)
Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
public ImageConfig.Builder mergeImageOutputOptions(ImageConfig.ImageOutputOptions value)
Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
public ImageConfig.Builder clearImageOutputOptions()
Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
public ImageConfig.ImageOutputOptions.Builder getImageOutputOptionsBuilder()
Optional. The image output format for generated images.
optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
public 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];
getImageOutputOptionsOrBuilder in interface ImageConfigOrBuilderpublic 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];hasAspectRatio in interface ImageConfigOrBuilderpublic 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];getAspectRatio in interface ImageConfigOrBuilderpublic com.google.protobuf.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];getAspectRatioBytes in interface ImageConfigOrBuilderpublic ImageConfig.Builder setAspectRatio(String value)
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];value - The aspectRatio to set.public ImageConfig.Builder clearAspectRatio()
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];public ImageConfig.Builder setAspectRatioBytes(com.google.protobuf.ByteString value)
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];value - The bytes for aspectRatio to set.public 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];
hasPersonGeneration in interface ImageConfigOrBuilderpublic 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];
getPersonGenerationValue in interface ImageConfigOrBuilderpublic ImageConfig.Builder setPersonGenerationValue(int value)
Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for personGeneration to set.public 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];
getPersonGeneration in interface ImageConfigOrBuilderpublic ImageConfig.Builder setPersonGeneration(ImageConfig.PersonGeneration value)
Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The personGeneration to set.public ImageConfig.Builder clearPersonGeneration()
Optional. Controls whether the model can generate people.
optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
public 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];hasImageSize in interface ImageConfigOrBuilderpublic 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];getImageSize in interface ImageConfigOrBuilderpublic com.google.protobuf.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];getImageSizeBytes in interface ImageConfigOrBuilderpublic ImageConfig.Builder setImageSize(String value)
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];value - The imageSize to set.public ImageConfig.Builder clearImageSize()
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];public ImageConfig.Builder setImageSizeBytes(com.google.protobuf.ByteString value)
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];value - The bytes for imageSize to set.Copyright © 2026 Google LLC. All rights reserved.