Class OnlineReturnPolicy.RestockingFee.Builder (0.9.0)

public static final class OnlineReturnPolicy.RestockingFee.Builder extends GeneratedMessageV3.Builder<OnlineReturnPolicy.RestockingFee.Builder> 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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OnlineReturnPolicy.RestockingFee.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

build()

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

buildPartial()

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

clear()

public OnlineReturnPolicy.RestockingFee.Builder clear()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OnlineReturnPolicy.RestockingFee.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

clearFixedFee()

public OnlineReturnPolicy.RestockingFee.Builder clearFixedFee()

Fixed restocking fee.

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

Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

clearMicroPercent()

public OnlineReturnPolicy.RestockingFee.Builder clearMicroPercent()

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
OnlineReturnPolicy.RestockingFee.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OnlineReturnPolicy.RestockingFee.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

clearType()

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

clone()

public OnlineReturnPolicy.RestockingFee.Builder clone()
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFixedFee()

public Price getFixedFee()

Fixed restocking fee.

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

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

The fixedFee.

getFixedFeeBuilder()

public Price.Builder getFixedFeeBuilder()

Fixed restocking fee.

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

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFixedFee(Price value)

public OnlineReturnPolicy.RestockingFee.Builder mergeFixedFee(Price value)

Fixed restocking fee.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(OnlineReturnPolicy.RestockingFee other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OnlineReturnPolicy.RestockingFee.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OnlineReturnPolicy.RestockingFee.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

setFixedFee(Price value)

public OnlineReturnPolicy.RestockingFee.Builder setFixedFee(Price value)

Fixed restocking fee.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

setFixedFee(Price.Builder builderForValue)

public OnlineReturnPolicy.RestockingFee.Builder setFixedFee(Price.Builder builderForValue)

Fixed restocking fee.

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

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

setMicroPercent(int value)

public OnlineReturnPolicy.RestockingFee.Builder setMicroPercent(int value)

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

int32 micro_percent = 2;

Parameter
Name Description
value int

The microPercent to set.

Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OnlineReturnPolicy.RestockingFee.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OnlineReturnPolicy.RestockingFee.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnlineReturnPolicy.RestockingFee.Builder
Overrides