public final class RemoveImageBackgroundConfig extends GeneratedMessage implements RemoveImageBackgroundConfigOrBuilderClient provided input configuration for removing the background.
Protobuf type google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RemoveImageBackgroundConfigImplements
RemoveImageBackgroundConfigOrBuilderStatic 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 |
|
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> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public RemoveImageBackgroundConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
RemoveImageBackgroundConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RemoveImageBackgroundConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
RemoveImageBackgroundConfig.Builder |
|
toBuilder()
public RemoveImageBackgroundConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
RemoveImageBackgroundConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|