Class UpscaleImageConfig.Builder
- Enclosing class:
- UpscaleImageConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UpscaleImageConfigbuild()Clears the value of enhanceInputImage field.Clears the value of httpOptions field.Clears the value of imagePreservationFactor field.Clears the value of includeRaiReason field.Clears the value of labels field.Clears the value of outputCompressionQuality field.Clears the value of outputGcsUri field.Clears the value of outputMimeType field.Clears the value of personGeneration field.Clears the value of safetyFilterLevel field.abstract UpscaleImageConfig.BuilderenhanceInputImage(boolean enhanceInputImage) Setter for enhanceInputImage.abstract UpscaleImageConfig.BuilderhttpOptions(HttpOptions httpOptions) Setter for httpOptions.httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract UpscaleImageConfig.BuilderimagePreservationFactor(Float imagePreservationFactor) Setter for imagePreservationFactor.abstract UpscaleImageConfig.BuilderincludeRaiReason(boolean includeRaiReason) Setter for includeRaiReason.abstract UpscaleImageConfig.BuilderSetter for labels.abstract UpscaleImageConfig.BuilderoutputCompressionQuality(Integer outputCompressionQuality) Setter for outputCompressionQuality.abstract UpscaleImageConfig.BuilderoutputGcsUri(String outputGcsUri) Setter for outputGcsUri.abstract UpscaleImageConfig.BuilderoutputMimeType(String outputMimeType) Setter for outputMimeType.abstract UpscaleImageConfig.BuilderpersonGeneration(PersonGeneration personGeneration) Setter for personGeneration.personGeneration(PersonGeneration.Known knownType) Setter for personGeneration given a known enum.personGeneration(String personGeneration) Setter for personGeneration given a string.abstract UpscaleImageConfig.BuildersafetyFilterLevel(SafetyFilterLevel safetyFilterLevel) Setter for safetyFilterLevel.safetyFilterLevel(SafetyFilterLevel.Known knownType) Setter for safetyFilterLevel given a known enum.safetyFilterLevel(String safetyFilterLevel) Setter for safetyFilterLevel given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue public UpscaleImageConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
clearHttpOptions
Clears the value of httpOptions field. -
outputGcsUri
Setter for outputGcsUri.outputGcsUri: Cloud Storage URI used to store the generated images.
-
clearOutputGcsUri
Clears the value of outputGcsUri field. -
safetyFilterLevel
Setter for safetyFilterLevel.safetyFilterLevel: Filter level for safety filtering.
-
clearSafetyFilterLevel
Clears the value of safetyFilterLevel field. -
safetyFilterLevel
@CanIgnoreReturnValue public UpscaleImageConfig.Builder safetyFilterLevel(SafetyFilterLevel.Known knownType) Setter for safetyFilterLevel given a known enum.safetyFilterLevel: Filter level for safety filtering.
-
safetyFilterLevel
Setter for safetyFilterLevel given a string.safetyFilterLevel: Filter level for safety filtering.
-
personGeneration
Setter for personGeneration.personGeneration: Allows generation of people by the model.
-
clearPersonGeneration
Clears the value of personGeneration field. -
personGeneration
@CanIgnoreReturnValue public UpscaleImageConfig.Builder personGeneration(PersonGeneration.Known knownType) Setter for personGeneration given a known enum.personGeneration: Allows generation of people by the model.
-
personGeneration
Setter for personGeneration given a string.personGeneration: Allows generation of people by the model.
-
includeRaiReason
Setter for includeRaiReason.includeRaiReason: Whether to include a reason for filtered-out images in the response.
-
clearIncludeRaiReason
Clears the value of includeRaiReason field. -
outputMimeType
Setter for outputMimeType.outputMimeType: The image format that the output should be saved as.
-
clearOutputMimeType
Clears the value of outputMimeType field. -
outputCompressionQuality
public abstract UpscaleImageConfig.Builder outputCompressionQuality(Integer outputCompressionQuality) Setter for outputCompressionQuality.outputCompressionQuality: The level of compression. Only applicable if the ``output_mime_type`` is ``image/jpeg``.
-
clearOutputCompressionQuality
Clears the value of outputCompressionQuality field. -
enhanceInputImage
Setter for enhanceInputImage.enhanceInputImage: Whether to add an image enhancing step before upscaling. It is expected to suppress the noise and JPEG compression artifacts from the input image.
-
clearEnhanceInputImage
Clears the value of enhanceInputImage field. -
imagePreservationFactor
Setter for imagePreservationFactor.imagePreservationFactor: With a higher image preservation factor, the original image pixels are more respected. With a lower image preservation factor, the output image will have be more different from the input image, but with finer details and less noise.
-
clearImagePreservationFactor
Clears the value of imagePreservationFactor field. -
labels
Setter for labels.labels: User specified labels to track billing usage.
-
clearLabels
Clears the value of labels field. -
build
-