Class RemoveImageBackgroundConfig (0.10.0)

public final class RemoveImageBackgroundConfig extends GeneratedMessageV3 implements RemoveImageBackgroundConfigOrBuilder

Client provided input configuration for removing the background.

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

Static Fields

BACKGROUND_COLOR_FIELD_NUMBER

public static final int BACKGROUND_COLOR_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RemoveImageBackgroundConfig getDefaultInstance()
Returns
Type Description
RemoveImageBackgroundConfig

getDescriptor()

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

newBuilder()

public static RemoveImageBackgroundConfig.Builder newBuilder()
Returns
Type Description
RemoveImageBackgroundConfig.Builder

newBuilder(RemoveImageBackgroundConfig prototype)

public static RemoveImageBackgroundConfig.Builder newBuilder(RemoveImageBackgroundConfig prototype)
Parameter
Name Description
prototype RemoveImageBackgroundConfig
Returns
Type Description
RemoveImageBackgroundConfig.Builder

parseDelimitedFrom(InputStream input)

public static RemoveImageBackgroundConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RemoveImageBackgroundConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RemoveImageBackgroundConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RemoveImageBackgroundConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RemoveImageBackgroundConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RemoveImageBackgroundConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RemoveImageBackgroundConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveImageBackgroundConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RemoveImageBackgroundConfig> parser()
Returns
Type Description
Parser<RemoveImageBackgroundConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

public Parser<RemoveImageBackgroundConfig> getParserForType()
Returns
Type Description
Parser<RemoveImageBackgroundConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RemoveImageBackgroundConfig.Builder newBuilderForType()
Returns
Type Description
RemoveImageBackgroundConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RemoveImageBackgroundConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RemoveImageBackgroundConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RemoveImageBackgroundConfig.Builder toBuilder()
Returns
Type Description
RemoveImageBackgroundConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException