public static final class OnlineReturnPolicy.RestockingFee.Builder extends GeneratedMessage.Builder<OnlineReturnPolicy.RestockingFee.Builder> implements OnlineReturnPolicy.RestockingFeeOrBuilderThe restocking fee. This can be a flat fee or a micro percent.
Protobuf type
google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OnlineReturnPolicy.RestockingFee.BuilderImplements
OnlineReturnPolicy.RestockingFeeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
clearType()
public OnlineReturnPolicy.RestockingFee.Builder clearType()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.RestockingFee.Builder |
|
getDefaultInstanceForType()
public OnlineReturnPolicy.RestockingFee getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.RestockingFee |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
mergeFrom(OnlineReturnPolicy.RestockingFee other)
public OnlineReturnPolicy.RestockingFee.Builder mergeFrom(OnlineReturnPolicy.RestockingFee other)| Parameter | |
|---|---|
| Name | Description |
other |
OnlineReturnPolicy.RestockingFee |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.RestockingFee.Builder |
|
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 |
intThe microPercent to set. |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.RestockingFee.Builder |
This builder for chaining. |