Class GenerateImageBackgroundConfig.Builder (0.25.0)

public static final class GenerateImageBackgroundConfig.Builder extends GeneratedMessage.Builder<GenerateImageBackgroundConfig.Builder> implements GenerateImageBackgroundConfigOrBuilder

Client provided input configuration for generating the background.

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

Static Methods

getDescriptor()

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

Methods

build()

public GenerateImageBackgroundConfig build()
Returns
Type Description
GenerateImageBackgroundConfig

buildPartial()

public GenerateImageBackgroundConfig buildPartial()
Returns
Type Description
GenerateImageBackgroundConfig

clear()

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

clearBackgroundDescription()

public GenerateImageBackgroundConfig.Builder clearBackgroundDescription()

Required. Example: "Hat on a baseball field" "on a baseball field" = background description Description of wanted background.

string background_description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.

clearProductDescription()

public GenerateImageBackgroundConfig.Builder clearProductDescription()

Required. Example: "Hat on a baseball field" "Hat" = product description Description of product.

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

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.

getBackgroundDescription()

public String getBackgroundDescription()

Required. Example: "Hat on a baseball field" "on a baseball field" = background description Description of wanted background.

string background_description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The backgroundDescription.

getBackgroundDescriptionBytes()

public ByteString getBackgroundDescriptionBytes()

Required. Example: "Hat on a baseball field" "on a baseball field" = background description Description of wanted background.

string background_description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for backgroundDescription.

getDefaultInstanceForType()

public GenerateImageBackgroundConfig getDefaultInstanceForType()
Returns
Type Description
GenerateImageBackgroundConfig

getDescriptorForType()

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

getProductDescription()

public String getProductDescription()

Required. Example: "Hat on a baseball field" "Hat" = product description Description of product.

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

Returns
Type Description
String

The productDescription.

getProductDescriptionBytes()

public ByteString getProductDescriptionBytes()

Required. Example: "Hat on a baseball field" "Hat" = product description Description of product.

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

Returns
Type Description
ByteString

The bytes for productDescription.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(GenerateImageBackgroundConfig other)

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

setBackgroundDescription(String value)

public GenerateImageBackgroundConfig.Builder setBackgroundDescription(String value)

Required. Example: "Hat on a baseball field" "on a baseball field" = background description Description of wanted background.

string background_description = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The backgroundDescription to set.

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.

setBackgroundDescriptionBytes(ByteString value)

public GenerateImageBackgroundConfig.Builder setBackgroundDescriptionBytes(ByteString value)

Required. Example: "Hat on a baseball field" "on a baseball field" = background description Description of wanted background.

string background_description = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for backgroundDescription to set.

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.

setProductDescription(String value)

public GenerateImageBackgroundConfig.Builder setProductDescription(String value)

Required. Example: "Hat on a baseball field" "Hat" = product description Description of product.

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

Parameter
Name Description
value String

The productDescription to set.

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.

setProductDescriptionBytes(ByteString value)

public GenerateImageBackgroundConfig.Builder setProductDescriptionBytes(ByteString value)

Required. Example: "Hat on a baseball field" "Hat" = product description Description of product.

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

Parameter
Name Description
value ByteString

The bytes for productDescription to set.

Returns
Type Description
GenerateImageBackgroundConfig.Builder

This builder for chaining.