Class RemoveImageBackgroundConfig.Builder (0.25.0)

public static final class RemoveImageBackgroundConfig.Builder extends GeneratedMessage.Builder<RemoveImageBackgroundConfig.Builder> implements RemoveImageBackgroundConfigOrBuilder

Client provided input configuration for removing the background.

Protobuf type google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RemoveImageBackgroundConfig build()
Returns
Type Description
RemoveImageBackgroundConfig

buildPartial()

public RemoveImageBackgroundConfig buildPartial()
Returns
Type Description
RemoveImageBackgroundConfig

clear()

public RemoveImageBackgroundConfig.Builder clear()
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

clearBackgroundColor()

public RemoveImageBackgroundConfig.Builder clearBackgroundColor()

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoveImageBackgroundConfig.Builder

getBackgroundColor()

public RgbColor getBackgroundColor()

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColor

The backgroundColor.

getBackgroundColorBuilder()

public RgbColor.Builder getBackgroundColorBuilder()

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColor.Builder

getBackgroundColorOrBuilder()

public RgbColorOrBuilder getBackgroundColorOrBuilder()

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColorOrBuilder

getDefaultInstanceForType()

public RemoveImageBackgroundConfig getDefaultInstanceForType()
Returns
Type Description
RemoveImageBackgroundConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasBackgroundColor()

public boolean hasBackgroundColor()

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the backgroundColor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackgroundColor(RgbColor value)

public RemoveImageBackgroundConfig.Builder mergeBackgroundColor(RgbColor value)

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RgbColor
Returns
Type Description
RemoveImageBackgroundConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RemoveImageBackgroundConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RemoveImageBackgroundConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

mergeFrom(RemoveImageBackgroundConfig other)

public RemoveImageBackgroundConfig.Builder mergeFrom(RemoveImageBackgroundConfig other)
Parameter
Name Description
other RemoveImageBackgroundConfig
Returns
Type Description
RemoveImageBackgroundConfig.Builder

setBackgroundColor(RgbColor value)

public RemoveImageBackgroundConfig.Builder setBackgroundColor(RgbColor value)

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RgbColor
Returns
Type Description
RemoveImageBackgroundConfig.Builder

setBackgroundColor(RgbColor.Builder builderForValue)

public RemoveImageBackgroundConfig.Builder setBackgroundColor(RgbColor.Builder builderForValue)

Optional. If set, the result of background removal will be an RGB image with this given color as the background, instead of an RGBA 4-channel transparent image.

.google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RgbColor.Builder
Returns
Type Description
RemoveImageBackgroundConfig.Builder