public static final class OnlineReturnPolicy.ReturnShippingFee.Builder extends GeneratedMessage.Builder<OnlineReturnPolicy.ReturnShippingFee.Builder> implements OnlineReturnPolicy.ReturnShippingFeeOrBuilderThe return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.
Protobuf type
google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OnlineReturnPolicy.ReturnShippingFee.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OnlineReturnPolicy.ReturnShippingFee build()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
buildPartial()
public OnlineReturnPolicy.ReturnShippingFee buildPartial()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
clear()
public OnlineReturnPolicy.ReturnShippingFee.Builder clear()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
clearFixedFee()
public OnlineReturnPolicy.ReturnShippingFee.Builder clearFixedFee() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
clearType()
public OnlineReturnPolicy.ReturnShippingFee.Builder clearType()Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public OnlineReturnPolicy.ReturnShippingFee getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFixedFee()
public Price getFixedFee() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The fixedFee. |
getFixedFeeBuilder()
public Price.Builder getFixedFeeBuilder() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price.Builder |
|
getFixedFeeOrBuilder()
public PriceOrBuilder getFixedFeeOrBuilder() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
getType()
public OnlineReturnPolicy.ReturnShippingFee.Type getType()Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasFixedFee()
public boolean hasFixedFee() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fixedFee 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.ReturnShippingFee.Builder mergeFixedFee(Price value) Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
mergeFrom(OnlineReturnPolicy.ReturnShippingFee other)
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(OnlineReturnPolicy.ReturnShippingFee other)| Parameter | |
|---|---|
| Name | Description |
other |
OnlineReturnPolicy.ReturnShippingFee |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
setFixedFee(Price value)
public OnlineReturnPolicy.ReturnShippingFee.Builder setFixedFee(Price value) Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
setFixedFee(Price.Builder builderForValue)
public OnlineReturnPolicy.ReturnShippingFee.Builder setFixedFee(Price.Builder builderForValue) Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
setType(OnlineReturnPolicy.ReturnShippingFee.Type value)
public OnlineReturnPolicy.ReturnShippingFee.Builder setType(OnlineReturnPolicy.ReturnShippingFee.Type value)Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OnlineReturnPolicy.ReturnShippingFee.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
This builder for chaining. |
setTypeValue(int value)
public OnlineReturnPolicy.ReturnShippingFee.Builder setTypeValue(int value)Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
This builder for chaining. |