Class ImageConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.ImageConfig
All Implemented Interfaces:
ImageConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ImageConfig extends com.google.protobuf.GeneratedMessage implements ImageConfigOrBuilder
 Config for image generation features.
 
Protobuf type google.cloud.aiplatform.v1.ImageConfig
See Also:
  • Field Details

    • IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER

      public static final int IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER
      See Also:
    • ASPECT_RATIO_FIELD_NUMBER

      public static final int ASPECT_RATIO_FIELD_NUMBER
      See Also:
    • PERSON_GENERATION_FIELD_NUMBER

      public static final int PERSON_GENERATION_FIELD_NUMBER
      See Also:
    • IMAGE_SIZE_FIELD_NUMBER

      public static final int IMAGE_SIZE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      hasImageOutputOptions in interface ImageConfigOrBuilder
      Returns:
      Whether the imageOutputOptions field is set.
    • 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];
      Specified by:
      getImageOutputOptions in interface ImageConfigOrBuilder
      Returns:
      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];
      Specified by:
      getImageOutputOptionsOrBuilder in interface ImageConfigOrBuilder
    • 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];
      Specified by:
      hasAspectRatio in interface ImageConfigOrBuilder
      Returns:
      Whether the aspectRatio field is set.
    • 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];
      Specified by:
      getAspectRatio in interface ImageConfigOrBuilder
      Returns:
      The aspectRatio.
    • getAspectRatioBytes

      public 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];
      Specified by:
      getAspectRatioBytes in interface ImageConfigOrBuilder
      Returns:
      The bytes for aspectRatio.
    • 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];
      Specified by:
      hasPersonGeneration in interface ImageConfigOrBuilder
      Returns:
      Whether the personGeneration field is set.
    • 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];
      Specified by:
      getPersonGenerationValue in interface ImageConfigOrBuilder
      Returns:
      The enum numeric value on the wire for personGeneration.
    • 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];
      Specified by:
      getPersonGeneration in interface ImageConfigOrBuilder
      Returns:
      The personGeneration.
    • 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];
      Specified by:
      hasImageSize in interface ImageConfigOrBuilder
      Returns:
      Whether the imageSize field is set.
    • 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];
      Specified by:
      getImageSize in interface ImageConfigOrBuilder
      Returns:
      The imageSize.
    • getImageSizeBytes

      public 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];
      Specified by:
      getImageSizeBytes in interface ImageConfigOrBuilder
      Returns:
      The bytes for imageSize.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ImageConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImageConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImageConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImageConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImageConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImageConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ImageConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ImageConfig.Builder newBuilder()
    • newBuilder

      public static ImageConfig.Builder newBuilder(ImageConfig prototype)
    • toBuilder

      public ImageConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ImageConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ImageConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ImageConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<ImageConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ImageConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder