Class RemoveImageBackgroundConfig.Builder (0.10.0)

public static final class RemoveImageBackgroundConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RemoveImageBackgroundConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public RemoveImageBackgroundConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RemoveImageBackgroundConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RemoveImageBackgroundConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public RemoveImageBackgroundConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RemoveImageBackgroundConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RemoveImageBackgroundConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides