Class ProductAttributes.ProductFee (1.23.0)

public static final class ProductAttributes.ProductFee extends GeneratedMessage implements ProductAttributes.ProductFeeOrBuilder

The product fee attribute containing type and amount.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.ProductFee

Static Fields

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductAttributes.ProductFee getDefaultInstance()
Returns
Type Description
ProductAttributes.ProductFee

getDescriptor()

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

newBuilder()

public static ProductAttributes.ProductFee.Builder newBuilder()
Returns
Type Description
ProductAttributes.ProductFee.Builder

newBuilder(ProductAttributes.ProductFee prototype)

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

parseDelimitedFrom(InputStream input)

public static ProductAttributes.ProductFee parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductAttributes.ProductFee
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ProductAttributes.ProductFee parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductAttributes.ProductFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ProductAttributes.ProductFee parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductAttributes.ProductFee
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ProductAttributes.ProductFee parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductAttributes.ProductFee
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ProductAttributes.ProductFee parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductAttributes.ProductFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ProductAttributes.ProductFee> parser()
Returns
Type Description
Parser<ProductFee>

Methods

equals(Object obj)

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

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.

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

getParserForType()

public Parser<ProductAttributes.ProductFee> getParserForType()
Returns
Type Description
Parser<ProductFee>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductAttributes.ProductFee.Builder newBuilderForType()
Returns
Type Description
ProductAttributes.ProductFee.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ProductAttributes.ProductFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductAttributes.ProductFee.Builder
Overrides

toBuilder()

public ProductAttributes.ProductFee.Builder toBuilder()
Returns
Type Description
ProductAttributes.ProductFee.Builder

writeTo(CodedOutputStream output)

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