Class OnlineReturnPolicy.RestockingFee (0.11.0)

public static final class OnlineReturnPolicy.RestockingFee extends GeneratedMessageV3 implements OnlineReturnPolicy.RestockingFeeOrBuilder

The restocking fee. This can be a flat fee or a micro percent.

Protobuf type google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OnlineReturnPolicy.RestockingFee

Static Fields

FIXED_FEE_FIELD_NUMBER

public static final int FIXED_FEE_FIELD_NUMBER
Field Value
Type Description
int

MICRO_PERCENT_FIELD_NUMBER

public static final int MICRO_PERCENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OnlineReturnPolicy.RestockingFee getDefaultInstance()
Returns
Type Description
OnlineReturnPolicy.RestockingFee

getDescriptor()

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

newBuilder()

public static OnlineReturnPolicy.RestockingFee.Builder newBuilder()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

newBuilder(OnlineReturnPolicy.RestockingFee prototype)

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

parseDelimitedFrom(InputStream input)

public static OnlineReturnPolicy.RestockingFee parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OnlineReturnPolicy.RestockingFee
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static OnlineReturnPolicy.RestockingFee parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OnlineReturnPolicy.RestockingFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static OnlineReturnPolicy.RestockingFee parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OnlineReturnPolicy.RestockingFee
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static OnlineReturnPolicy.RestockingFee parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OnlineReturnPolicy.RestockingFee
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static OnlineReturnPolicy.RestockingFee parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OnlineReturnPolicy.RestockingFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<OnlineReturnPolicy.RestockingFee> parser()
Returns
Type Description
Parser<RestockingFee>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public OnlineReturnPolicy.RestockingFee getDefaultInstanceForType()
Returns
Type Description
OnlineReturnPolicy.RestockingFee

getFixedFee()

public Price getFixedFee()

Fixed restocking fee.

.google.shopping.type.Price fixed_fee = 1;

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

The fixedFee.

getFixedFeeOrBuilder()

public PriceOrBuilder getFixedFeeOrBuilder()

Fixed restocking fee.

.google.shopping.type.Price fixed_fee = 1;

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

getMicroPercent()

public int getMicroPercent()

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged.

int32 micro_percent = 2;

Returns
Type Description
int

The microPercent.

getParserForType()

public Parser<OnlineReturnPolicy.RestockingFee> getParserForType()
Returns
Type Description
Parser<RestockingFee>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeCase()

public OnlineReturnPolicy.RestockingFee.TypeCase getTypeCase()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.TypeCase

hasFixedFee()

public boolean hasFixedFee()

Fixed restocking fee.

.google.shopping.type.Price fixed_fee = 1;

Returns
Type Description
boolean

Whether the fixedFee field is set.

hasMicroPercent()

public boolean hasMicroPercent()

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged.

int32 micro_percent = 2;

Returns
Type Description
boolean

Whether the microPercent 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 OnlineReturnPolicy.RestockingFee.Builder newBuilderForType()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public OnlineReturnPolicy.RestockingFee.Builder toBuilder()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

writeTo(CodedOutputStream output)

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