Class ImageConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
com.google.cloud.aiplatform.v1.ImageConfig.Builder
All Implemented Interfaces:
ImageConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImageConfig

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.ImageConfig
  • 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.Builder<ImageConfig.Builder>
    • clear

      public ImageConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public ImageConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageConfig.Builder>
    • mergeFrom

      public ImageConfig.Builder mergeFrom(ImageConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
    • mergeFrom

      public ImageConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageConfig.Builder>
      Throws:
      IOException
    • 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.
    • setImageOutputOptions

      public 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];
    • setImageOutputOptions

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

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

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

      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];
    • 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.
    • setAspectRatio

      public 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];
      Parameters:
      value - The aspectRatio to set.
      Returns:
      This builder for chaining.
    • clearAspectRatio

      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];
      Returns:
      This builder for chaining.
    • setAspectRatioBytes

      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];
      Parameters:
      value - The bytes for aspectRatio to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPersonGenerationValue

      public 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];
      Parameters:
      value - The enum numeric value on the wire for personGeneration to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPersonGeneration

      public 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];
      Parameters:
      value - The personGeneration to set.
      Returns:
      This builder for chaining.
    • clearPersonGeneration

      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];
      Returns:
      This builder for chaining.
    • 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.
    • setImageSize

      public 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];
      Parameters:
      value - The imageSize to set.
      Returns:
      This builder for chaining.
    • clearImageSize

      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];
      Returns:
      This builder for chaining.
    • setImageSizeBytes

      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];
      Parameters:
      value - The bytes for imageSize to set.
      Returns:
      This builder for chaining.