Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ImageConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setAspectRatio(String value) Optional.setAspectRatioBytes(com.google.protobuf.ByteString value) Optional.Optional.setImageOutputOptions(ImageConfig.ImageOutputOptions.Builder builderForValue) Optional.setImageSize(String value) Optional.setImageSizeBytes(com.google.protobuf.ByteString value) Optional.Optional.setPersonGenerationValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImageConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasImageOutputOptionsin interfaceImageConfigOrBuilder- Returns:
- Whether the imageOutputOptions field is set.
-
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:
getImageOutputOptionsin interfaceImageConfigOrBuilder- Returns:
- The imageOutputOptions.
-
setImageOutputOptions
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
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
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
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
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:
getImageOutputOptionsOrBuilderin interfaceImageConfigOrBuilder
-
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:
hasAspectRatioin interfaceImageConfigOrBuilder- Returns:
- Whether the aspectRatio field is set.
-
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:
getAspectRatioin interfaceImageConfigOrBuilder- 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:
getAspectRatioBytesin interfaceImageConfigOrBuilder- Returns:
- The bytes for aspectRatio.
-
setAspectRatio
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
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
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:
hasPersonGenerationin interfaceImageConfigOrBuilder- 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:
getPersonGenerationValuein interfaceImageConfigOrBuilder- Returns:
- The enum numeric value on the wire for personGeneration.
-
setPersonGenerationValue
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
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:
getPersonGenerationin interfaceImageConfigOrBuilder- Returns:
- The personGeneration.
-
setPersonGeneration
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
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:
hasImageSizein interfaceImageConfigOrBuilder- Returns:
- Whether the imageSize field is set.
-
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:
getImageSizein interfaceImageConfigOrBuilder- 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:
getImageSizeBytesin interfaceImageConfigOrBuilder- Returns:
- The bytes for imageSize.
-
setImageSize
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
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
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.
-