Class ProductAttributes.ProductFee.Builder (1.23.0)

public static final class ProductAttributes.ProductFee.Builder extends GeneratedMessage.Builder<ProductAttributes.ProductFee.Builder> implements ProductAttributes.ProductFeeOrBuilder

The product fee attribute containing type and amount.

Protobuf type google.shopping.merchant.products.v1.ProductAttributes.ProductFee

Static Methods

getDescriptor()

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

Methods

build()

public ProductAttributes.ProductFee build()
Returns
Type Description
ProductAttributes.ProductFee

buildPartial()

public ProductAttributes.ProductFee buildPartial()
Returns
Type Description
ProductAttributes.ProductFee

clear()

public ProductAttributes.ProductFee.Builder clear()
Returns
Type Description
ProductAttributes.ProductFee.Builder
Overrides

clearAmount()

public ProductAttributes.ProductFee.Builder clearAmount()

The amount of product fee.

.google.shopping.type.Price amount = 2;

Returns
Type Description
ProductAttributes.ProductFee.Builder

clearType()

public ProductAttributes.ProductFee.Builder clearType()

The type of product fee.

.google.shopping.merchant.products.v1.ProductAttributes.ProductFee.FeeType type = 1;

Returns
Type Description
ProductAttributes.ProductFee.Builder

This builder for chaining.

getAmount()

public Price getAmount()

The amount of product fee.

.google.shopping.type.Price amount = 2;

Returns
Type Description
com.google.shopping.type.Price

The amount.

getAmountBuilder()

public Price.Builder getAmountBuilder()

The amount of product fee.

.google.shopping.type.Price amount = 2;

Returns
Type Description
com.google.shopping.type.Price.Builder

getAmountOrBuilder()

public PriceOrBuilder getAmountOrBuilder()

The amount of product fee.

.google.shopping.type.Price amount = 2;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getDefaultInstanceForType()

public ProductAttributes.ProductFee getDefaultInstanceForType()
Returns
Type Description
ProductAttributes.ProductFee

getDescriptorForType()

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

getType()

public ProductAttributes.ProductFee.FeeType getType()

The type of product fee.

.google.shopping.merchant.products.v1.ProductAttributes.ProductFee.FeeType type = 1;

Returns
Type Description
ProductAttributes.ProductFee.FeeType

The type.

getTypeValue()

public int getTypeValue()

The type of product fee.

.google.shopping.merchant.products.v1.ProductAttributes.ProductFee.FeeType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasAmount()

public boolean hasAmount()

The amount of product fee.

.google.shopping.type.Price amount = 2;

Returns
Type Description
boolean

Whether the amount field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAmount(Price value)

public ProductAttributes.ProductFee.Builder mergeAmount(Price value)

The amount of product fee.

.google.shopping.type.Price amount = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
ProductAttributes.ProductFee.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductAttributes.ProductFee other)

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

setAmount(Price value)

public ProductAttributes.ProductFee.Builder setAmount(Price value)

The amount of product fee.

.google.shopping.type.Price amount = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
ProductAttributes.ProductFee.Builder

setAmount(Price.Builder builderForValue)

public ProductAttributes.ProductFee.Builder setAmount(Price.Builder builderForValue)

The amount of product fee.

.google.shopping.type.Price amount = 2;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
ProductAttributes.ProductFee.Builder

setType(ProductAttributes.ProductFee.FeeType value)

public ProductAttributes.ProductFee.Builder setType(ProductAttributes.ProductFee.FeeType value)

The type of product fee.

.google.shopping.merchant.products.v1.ProductAttributes.ProductFee.FeeType type = 1;

Parameter
Name Description
value ProductAttributes.ProductFee.FeeType

The type to set.

Returns
Type Description
ProductAttributes.ProductFee.Builder

This builder for chaining.

setTypeValue(int value)

public ProductAttributes.ProductFee.Builder setTypeValue(int value)

The type of product fee.

.google.shopping.merchant.products.v1.ProductAttributes.ProductFee.FeeType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ProductAttributes.ProductFee.Builder

This builder for chaining.