@Generated public final class ImageConfig extends com.google.protobuf.GeneratedMessage implements ImageConfigOrBuilder
Config for image generation features.Protobuf type
google.cloud.aiplatform.v1.ImageConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ImageConfig.Builder
Config for image generation features.
|
static class |
ImageConfig.ImageOutputOptions
The image output format for generated images.
|
static interface |
ImageConfig.ImageOutputOptionsOrBuilder |
static class |
ImageConfig.PersonGeneration
Enum for controlling the generation of people in images.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ASPECT_RATIO_FIELD_NUMBER |
static int |
IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER |
static int |
IMAGE_SIZE_FIELD_NUMBER |
static int |
PERSON_GENERATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAspectRatio()
Optional.
|
com.google.protobuf.ByteString |
getAspectRatioBytes()
Optional.
|
static ImageConfig |
getDefaultInstance() |
ImageConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ImageConfig.ImageOutputOptions |
getImageOutputOptions()
Optional.
|
ImageConfig.ImageOutputOptionsOrBuilder |
getImageOutputOptionsOrBuilder()
Optional.
|
String |
getImageSize()
Optional.
|
com.google.protobuf.ByteString |
getImageSizeBytes()
Optional.
|
com.google.protobuf.Parser<ImageConfig> |
getParserForType() |
ImageConfig.PersonGeneration |
getPersonGeneration()
Optional.
|
int |
getPersonGenerationValue()
Optional.
|
int |
getSerializedSize() |
boolean |
hasAspectRatio()
Optional.
|
int |
hashCode() |
boolean |
hasImageOutputOptions()
Optional.
|
boolean |
hasImageSize()
Optional.
|
boolean |
hasPersonGeneration()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ImageConfig.Builder |
newBuilder() |
static ImageConfig.Builder |
newBuilder(ImageConfig prototype) |
ImageConfig.Builder |
newBuilderForType() |
protected ImageConfig.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static ImageConfig |
parseDelimitedFrom(InputStream input) |
static ImageConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImageConfig |
parseFrom(byte[] data) |
static ImageConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImageConfig |
parseFrom(ByteBuffer data) |
static ImageConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImageConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ImageConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImageConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ImageConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ImageConfig |
parseFrom(InputStream input) |
static ImageConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ImageConfig> |
parser() |
ImageConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER
public static final int ASPECT_RATIO_FIELD_NUMBER
public static final int PERSON_GENERATION_FIELD_NUMBER
public static final int IMAGE_SIZE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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.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 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.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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ImageConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ImageConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ImageConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ImageConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ImageConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ImageConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ImageConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ImageConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ImageConfig.Builder newBuilder()
public static ImageConfig.Builder newBuilder(ImageConfig prototype)
public ImageConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ImageConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static ImageConfig getDefaultInstance()
public static com.google.protobuf.Parser<ImageConfig> parser()
public com.google.protobuf.Parser<ImageConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic ImageConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.