Class ImageConfig (3.86.0)

public final class ImageConfig extends GeneratedMessage implements ImageConfigOrBuilder

Config for image generation features.

Protobuf type google.cloud.aiplatform.v1.ImageConfig

Static Fields

ASPECT_RATIO_FIELD_NUMBER

public static final int ASPECT_RATIO_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER

public static final int IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_SIZE_FIELD_NUMBER

public static final int IMAGE_SIZE_FIELD_NUMBER
Field Value
Type Description
int

PERSON_GENERATION_FIELD_NUMBER

public static final int PERSON_GENERATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImageConfig getDefaultInstance()
Returns
Type Description
ImageConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ImageConfig.Builder newBuilder()
Returns
Type Description
ImageConfig.Builder

newBuilder(ImageConfig prototype)

public static ImageConfig.Builder newBuilder(ImageConfig prototype)
Parameter
Name Description
prototype ImageConfig
Returns
Type Description
ImageConfig.Builder

parseDelimitedFrom(InputStream input)

public static ImageConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImageConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImageConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImageConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImageConfig> parser()
Returns
Type Description
Parser<ImageConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAspectRatio()

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

getDefaultInstanceForType()

public ImageConfig getDefaultInstanceForType()
Returns
Type Description
ImageConfig

getImageOutputOptions()

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

getParserForType()

public Parser<ImageConfig> getParserForType()
Returns
Type Description
Parser<ImageConfig>
Overrides

getPersonGeneration()

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];

Returns
Type Description
ImageConfig.PersonGeneration

The personGeneration.

getPersonGenerationValue()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAspectRatio()

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImageConfig.Builder newBuilderForType()
Returns
Type Description
ImageConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ImageConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImageConfig.Builder
Overrides

toBuilder()

public ImageConfig.Builder toBuilder()
Returns
Type Description
ImageConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException