Class OnlineReturnPolicy.ReturnShippingFee.Builder (0.5.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public OnlineReturnPolicy.ReturnShippingFee.Builder clearType()

Type of return shipping fee.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;

Returns
Type Description
OnlineReturnPolicy.ReturnShippingFee.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

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()

Type of return shipping fee.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;

Returns
Type Description
OnlineReturnPolicy.ReturnShippingFee.Type

The type.

getTypeValue()

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.

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeFrom(OnlineReturnPolicy.ReturnShippingFee other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setType(OnlineReturnPolicy.ReturnShippingFee.Type value)

public OnlineReturnPolicy.ReturnShippingFee.Builder setType(OnlineReturnPolicy.ReturnShippingFee.Type value)

Type of return shipping fee.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1;

Parameter
Name Description
value OnlineReturnPolicy.ReturnShippingFee.Type

The type to set.

Returns
Type Description
OnlineReturnPolicy.ReturnShippingFee.Builder

This builder for chaining.

setTypeValue(int value)

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.

Returns
Type Description
OnlineReturnPolicy.ReturnShippingFee.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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