Class RemoveProductImageBackgroundRequest (0.10.0)

public final class RemoveProductImageBackgroundRequest extends GeneratedMessageV3 implements RemoveProductImageBackgroundRequestOrBuilder

Request message for the RemoveProductImageBackground method.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RemoveProductImageBackgroundRequest

Static Fields

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

INPUT_IMAGE_FIELD_NUMBER

public static final int INPUT_IMAGE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RemoveProductImageBackgroundRequest getDefaultInstance()
Returns
Type Description
RemoveProductImageBackgroundRequest

getDescriptor()

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

newBuilder()

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

newBuilder(RemoveProductImageBackgroundRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConfig()

public RemoveImageBackgroundConfig getConfig()

Optional. Configuration parameters for the removal of the background.

.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoveImageBackgroundConfig

The config.

getConfigOrBuilder()

public RemoveImageBackgroundConfigOrBuilder getConfigOrBuilder()

Optional. Configuration parameters for the removal of the background.

.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoveImageBackgroundConfigOrBuilder

getDefaultInstanceForType()

public RemoveProductImageBackgroundRequest getDefaultInstanceForType()
Returns
Type Description
RemoveProductImageBackgroundRequest

getInputImage()

public InputImage getInputImage()

Required. The input image.

.google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputImage

The inputImage.

getInputImageOrBuilder()

public InputImageOrBuilder getInputImageOrBuilder()

Required. The input image.

.google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputImageOrBuilder

getName()

public String getName()

Required. The account for which to generate an image. This acts as a container for the request and does not affect the generation itself. Format: accounts/{account}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The account for which to generate an image. This acts as a container for the request and does not affect the generation itself. Format: accounts/{account}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getOutputConfig()

public OutputImageConfig getOutputConfig()

Optional. Configuration for how the output image should be returned.

.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputImageConfig

The outputConfig.

getOutputConfigOrBuilder()

public OutputImageConfigOrBuilder getOutputConfigOrBuilder()

Optional. Configuration for how the output image should be returned.

.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputImageConfigOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasConfig()

public boolean hasConfig()

Optional. Configuration parameters for the removal of the background.

.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the config field is set.

hasInputImage()

public boolean hasInputImage()

Required. The input image.

.google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the inputImage field is set.

hasOutputConfig()

public boolean hasOutputConfig()

Optional. Configuration for how the output image should be returned.

.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputConfig 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 RemoveProductImageBackgroundRequest.Builder newBuilderForType()
Returns
Type Description
RemoveProductImageBackgroundRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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