public static final class ProductAttributes.ProductFee.Builder extends GeneratedMessage.Builder<ProductAttributes.ProductFee.Builder> implements ProductAttributes.ProductFeeOrBuilderThe product fee attribute containing type and amount.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.ProductFee
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.ProductFee.BuilderImplements
ProductAttributes.ProductFeeOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.FeeTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.ProductFee.Builder |
This builder for chaining. |