Class ImageConfig.ImageOutputOptions.Builder

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

public static final class ImageConfig.ImageOutputOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageConfig.ImageOutputOptions.Builder> implements ImageConfig.ImageOutputOptionsOrBuilder
 The image output format for generated images.
 
Protobuf type google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
  • 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.ImageOutputOptions.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.ImageOutputOptions.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.ImageOutputOptions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ImageConfig.ImageOutputOptions.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.ImageOutputOptions.Builder>
    • mergeFrom

    • isInitialized

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

      public ImageConfig.ImageOutputOptions.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.ImageOutputOptions.Builder>
      Throws:
      IOException
    • hasMimeType

      public boolean hasMimeType()
       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMimeType in interface ImageConfig.ImageOutputOptionsOrBuilder
      Returns:
      Whether the mimeType field is set.
    • getMimeType

      public String getMimeType()
       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMimeType in interface ImageConfig.ImageOutputOptionsOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMimeTypeBytes in interface ImageConfig.ImageOutputOptionsOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public ImageConfig.ImageOutputOptions.Builder setMimeType(String value)
       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public ImageConfig.ImageOutputOptions.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       Optional. The image format that the output should be saved as.
       
      optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • hasCompressionQuality

      public boolean hasCompressionQuality()
       Optional. The compression quality of the output image.
       
      optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCompressionQuality in interface ImageConfig.ImageOutputOptionsOrBuilder
      Returns:
      Whether the compressionQuality field is set.
    • getCompressionQuality

      public int getCompressionQuality()
       Optional. The compression quality of the output image.
       
      optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCompressionQuality in interface ImageConfig.ImageOutputOptionsOrBuilder
      Returns:
      The compressionQuality.
    • setCompressionQuality

      public ImageConfig.ImageOutputOptions.Builder setCompressionQuality(int value)
       Optional. The compression quality of the output image.
       
      optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The compressionQuality to set.
      Returns:
      This builder for chaining.
    • clearCompressionQuality

      public ImageConfig.ImageOutputOptions.Builder clearCompressionQuality()
       Optional. The compression quality of the output image.
       
      optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.