public static final class OnlineReturnPolicy.ReturnShippingFee.Builder extends GeneratedMessageV3.Builder<OnlineReturnPolicy.ReturnShippingFee.Builder> implements OnlineReturnPolicy.ReturnShippingFeeOrBuilder
The 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public OnlineReturnPolicy.ReturnShippingFee.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public OnlineReturnPolicy.ReturnShippingFee build()
public OnlineReturnPolicy.ReturnShippingFee buildPartial()
public OnlineReturnPolicy.ReturnShippingFee.Builder clear()
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public OnlineReturnPolicy.ReturnShippingFee.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder clearType()
Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;
public OnlineReturnPolicy.ReturnShippingFee.Builder clone()
Overrides
public OnlineReturnPolicy.ReturnShippingFee getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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 |
|
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 |
|
public OnlineReturnPolicy.ReturnShippingFee.Type getType()
Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;
public int getTypeValue()
Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for type.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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
|
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder mergeFrom(OnlineReturnPolicy.ReturnShippingFee other)
public final OnlineReturnPolicy.ReturnShippingFee.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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
|
public OnlineReturnPolicy.ReturnShippingFee.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public OnlineReturnPolicy.ReturnShippingFee.Builder setType(OnlineReturnPolicy.ReturnShippingFee.Type value)
Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;
public OnlineReturnPolicy.ReturnShippingFee.Builder setTypeValue(int value)
Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for type to set.
|
public final OnlineReturnPolicy.ReturnShippingFee.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides