Class ProductAttributes.Returns.Builder (1.27.0)

public static final class ProductAttributes.Returns.Builder extends GeneratedMessage.Builder<ProductAttributes.Returns.Builder> implements ProductAttributes.ReturnsOrBuilder

The returns of the product.

Protobuf type google.shopping.merchant.products.v1.ProductAttributes.Returns

Static Methods

getDescriptor()

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

Methods

addAllCountries(Iterable<String> values)

public ProductAttributes.Returns.Builder addAllCountries(Iterable<String> values)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameter
Name Description
values Iterable<String>

The countries to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllItemConditions(Iterable<? extends ProductAttributes.Returns.ItemCondition> values)

public ProductAttributes.Returns.Builder addAllItemConditions(Iterable<? extends ProductAttributes.Returns.ItemCondition> values)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition>

The itemConditions to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllItemConditionsValue(Iterable<Integer> values)

public ProductAttributes.Returns.Builder addAllItemConditionsValue(Iterable<Integer> values)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for itemConditions to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllMethods(Iterable<? extends ProductAttributes.Returns.ReturnMethod> values)

public ProductAttributes.Returns.Builder addAllMethods(Iterable<? extends ProductAttributes.Returns.ReturnMethod> values)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod>

The methods to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllMethodsValue(Iterable<Integer> values)

public ProductAttributes.Returns.Builder addAllMethodsValue(Iterable<Integer> values)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for methods to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllOutcomes(Iterable<? extends ProductAttributes.Returns.ReturnOutcome> values)

public ProductAttributes.Returns.Builder addAllOutcomes(Iterable<? extends ProductAttributes.Returns.ReturnOutcome> values)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome>

The outcomes to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addAllOutcomesValue(Iterable<Integer> values)

public ProductAttributes.Returns.Builder addAllOutcomesValue(Iterable<Integer> values)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for outcomes to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addCountries(String value)

public ProductAttributes.Returns.Builder addCountries(String value)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameter
Name Description
value String

The countries to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addCountriesBytes(ByteString value)

public ProductAttributes.Returns.Builder addCountriesBytes(ByteString value)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameter
Name Description
value ByteString

The bytes of the countries to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addItemConditions(ProductAttributes.Returns.ItemCondition value)

public ProductAttributes.Returns.Builder addItemConditions(ProductAttributes.Returns.ItemCondition value)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
value ProductAttributes.Returns.ItemCondition

The itemConditions to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addItemConditionsValue(int value)

public ProductAttributes.Returns.Builder addItemConditionsValue(int value)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for itemConditions to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addMethods(ProductAttributes.Returns.ReturnMethod value)

public ProductAttributes.Returns.Builder addMethods(ProductAttributes.Returns.ReturnMethod value)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
value ProductAttributes.Returns.ReturnMethod

The methods to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addMethodsValue(int value)

public ProductAttributes.Returns.Builder addMethodsValue(int value)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for methods to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addOutcomes(ProductAttributes.Returns.ReturnOutcome value)

public ProductAttributes.Returns.Builder addOutcomes(ProductAttributes.Returns.ReturnOutcome value)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
value ProductAttributes.Returns.ReturnOutcome

The outcomes to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

addOutcomesValue(int value)

public ProductAttributes.Returns.Builder addOutcomesValue(int value)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for outcomes to add.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

build()

public ProductAttributes.Returns build()
Returns
Type Description
ProductAttributes.Returns

buildPartial()

public ProductAttributes.Returns buildPartial()
Returns
Type Description
ProductAttributes.Returns

clear()

public ProductAttributes.Returns.Builder clear()
Returns
Type Description
ProductAttributes.Returns.Builder
Overrides

clearCountries()

public ProductAttributes.Returns.Builder clearCountries()

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearItemConditions()

public ProductAttributes.Returns.Builder clearItemConditions()

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearMethods()

public ProductAttributes.Returns.Builder clearMethods()

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearOutcomes()

public ProductAttributes.Returns.Builder clearOutcomes()

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearPolicyUrl()

public ProductAttributes.Returns.Builder clearPolicyUrl()

The URL of the return policy.

optional string policy_url = 11;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearRestockingFee()

public ProductAttributes.Returns.Builder clearRestockingFee()

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

Returns
Type Description
ProductAttributes.Returns.Builder

clearRestockingFeeOneof()

public ProductAttributes.Returns.Builder clearRestockingFeeOneof()
Returns
Type Description
ProductAttributes.Returns.Builder

clearRestockingPercentageFee()

public ProductAttributes.Returns.Builder clearRestockingPercentageFee()

A percentage restocking fee penalty.

double restocking_percentage_fee = 10;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearShippingFee()

public ProductAttributes.Returns.Builder clearShippingFee()

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

Returns
Type Description
ProductAttributes.Returns.Builder

clearShippingFeeType()

public ProductAttributes.Returns.Builder clearShippingFeeType()

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearWindowDays()

public ProductAttributes.Returns.Builder clearWindowDays()

The duration of the return window in days.

optional int64 window_days = 2;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

clearWindowType()

public ProductAttributes.Returns.Builder clearWindowType()

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

getCountries(int index)

public String getCountries(int index)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The countries at the given index.

getCountriesBytes(int index)

public ByteString getCountriesBytes(int index)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the countries at the given index.

getCountriesCount()

public int getCountriesCount()

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Returns
Type Description
int

The count of countries.

getCountriesList()

public ProtocolStringList getCountriesList()

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Returns
Type Description
ProtocolStringList

A list containing the countries.

getDefaultInstanceForType()

public ProductAttributes.Returns getDefaultInstanceForType()
Returns
Type Description
ProductAttributes.Returns

getDescriptorForType()

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

getItemConditions(int index)

public ProductAttributes.Returns.ItemCondition getItemConditions(int index)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ProductAttributes.Returns.ItemCondition

The itemConditions at the given index.

getItemConditionsCount()

public int getItemConditionsCount()

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Returns
Type Description
int

The count of itemConditions.

getItemConditionsList()

public List<ProductAttributes.Returns.ItemCondition> getItemConditionsList()

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Returns
Type Description
List<ItemCondition>

A list containing the itemConditions.

getItemConditionsValue(int index)

public int getItemConditionsValue(int index)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of itemConditions at the given index.

getItemConditionsValueList()

public List<Integer> getItemConditionsValueList()

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for itemConditions.

getMethods(int index)

public ProductAttributes.Returns.ReturnMethod getMethods(int index)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ProductAttributes.Returns.ReturnMethod

The methods at the given index.

getMethodsCount()

public int getMethodsCount()

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Returns
Type Description
int

The count of methods.

getMethodsList()

public List<ProductAttributes.Returns.ReturnMethod> getMethodsList()

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Returns
Type Description
List<ReturnMethod>

A list containing the methods.

getMethodsValue(int index)

public int getMethodsValue(int index)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of methods at the given index.

getMethodsValueList()

public List<Integer> getMethodsValueList()

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for methods.

getOutcomes(int index)

public ProductAttributes.Returns.ReturnOutcome getOutcomes(int index)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ProductAttributes.Returns.ReturnOutcome

The outcomes at the given index.

getOutcomesCount()

public int getOutcomesCount()

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Returns
Type Description
int

The count of outcomes.

getOutcomesList()

public List<ProductAttributes.Returns.ReturnOutcome> getOutcomesList()

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Returns
Type Description
List<ReturnOutcome>

A list containing the outcomes.

getOutcomesValue(int index)

public int getOutcomesValue(int index)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of outcomes at the given index.

getOutcomesValueList()

public List<Integer> getOutcomesValueList()

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for outcomes.

getPolicyUrl()

public String getPolicyUrl()

The URL of the return policy.

optional string policy_url = 11;

Returns
Type Description
String

The policyUrl.

getPolicyUrlBytes()

public ByteString getPolicyUrlBytes()

The URL of the return policy.

optional string policy_url = 11;

Returns
Type Description
ByteString

The bytes for policyUrl.

getRestockingFee()

public Price getRestockingFee()

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

The restockingFee.

getRestockingFeeBuilder()

public Price.Builder getRestockingFeeBuilder()

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

getRestockingFeeOneofCase()

public ProductAttributes.Returns.RestockingFeeOneofCase getRestockingFeeOneofCase()
Returns
Type Description
ProductAttributes.Returns.RestockingFeeOneofCase

getRestockingFeeOrBuilder()

public PriceOrBuilder getRestockingFeeOrBuilder()

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

getRestockingPercentageFee()

public double getRestockingPercentageFee()

A percentage restocking fee penalty.

double restocking_percentage_fee = 10;

Returns
Type Description
double

The restockingPercentageFee.

getShippingFee()

public Price getShippingFee()

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

The shippingFee.

getShippingFeeBuilder()

public Price.Builder getShippingFeeBuilder()

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

getShippingFeeOrBuilder()

public PriceOrBuilder getShippingFeeOrBuilder()

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

getShippingFeeType()

public ProductAttributes.Returns.ReturnShippingFeeType getShippingFeeType()

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Returns
Type Description
ProductAttributes.Returns.ReturnShippingFeeType

The shippingFeeType.

getShippingFeeTypeValue()

public int getShippingFeeTypeValue()

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Returns
Type Description
int

The enum numeric value on the wire for shippingFeeType.

getWindowDays()

public long getWindowDays()

The duration of the return window in days.

optional int64 window_days = 2;

Returns
Type Description
long

The windowDays.

getWindowType()

public ProductAttributes.Returns.ReturnWindowType getWindowType()

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Returns
Type Description
ProductAttributes.Returns.ReturnWindowType

The windowType.

getWindowTypeValue()

public int getWindowTypeValue()

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for windowType.

hasPolicyUrl()

public boolean hasPolicyUrl()

The URL of the return policy.

optional string policy_url = 11;

Returns
Type Description
boolean

Whether the policyUrl field is set.

hasRestockingFee()

public boolean hasRestockingFee()

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

Returns
Type Description
boolean

Whether the restockingFee field is set.

hasRestockingPercentageFee()

public boolean hasRestockingPercentageFee()

A percentage restocking fee penalty.

double restocking_percentage_fee = 10;

Returns
Type Description
boolean

Whether the restockingPercentageFee field is set.

hasShippingFee()

public boolean hasShippingFee()

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

Returns
Type Description
boolean

Whether the shippingFee field is set.

hasShippingFeeType()

public boolean hasShippingFeeType()

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Returns
Type Description
boolean

Whether the shippingFeeType field is set.

hasWindowDays()

public boolean hasWindowDays()

The duration of the return window in days.

optional int64 window_days = 2;

Returns
Type Description
boolean

Whether the windowDays field is set.

hasWindowType()

public boolean hasWindowType()

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Returns
Type Description
boolean

Whether the windowType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductAttributes.Returns other)

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

mergeRestockingFee(Price value)

public ProductAttributes.Returns.Builder mergeRestockingFee(Price value)

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

mergeShippingFee(Price value)

public ProductAttributes.Returns.Builder mergeShippingFee(Price value)

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

setCountries(int index, String value)

public ProductAttributes.Returns.Builder setCountries(int index, String value)

The CLDR territory code of the countries to which an item can be returned.

repeated string countries = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The countries to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setItemConditions(int index, ProductAttributes.Returns.ItemCondition value)

public ProductAttributes.Returns.Builder setItemConditions(int index, ProductAttributes.Returns.ItemCondition value)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameters
Name Description
index int

The index to set the value at.

value ProductAttributes.Returns.ItemCondition

The itemConditions to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setItemConditionsValue(int index, int value)

public ProductAttributes.Returns.Builder setItemConditionsValue(int index, int value)

The condition the item must be in to be accepted.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ItemCondition item_conditions = 4;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for itemConditions to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setMethods(int index, ProductAttributes.Returns.ReturnMethod value)

public ProductAttributes.Returns.Builder setMethods(int index, ProductAttributes.Returns.ReturnMethod value)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameters
Name Description
index int

The index to set the value at.

value ProductAttributes.Returns.ReturnMethod

The methods to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setMethodsValue(int index, int value)

public ProductAttributes.Returns.Builder setMethodsValue(int index, int value)

The physical methods by which the item can be returned.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnMethod methods = 5;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for methods to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setOutcomes(int index, ProductAttributes.Returns.ReturnOutcome value)

public ProductAttributes.Returns.Builder setOutcomes(int index, ProductAttributes.Returns.ReturnOutcome value)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameters
Name Description
index int

The index to set the value at.

value ProductAttributes.Returns.ReturnOutcome

The outcomes to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setOutcomesValue(int index, int value)

public ProductAttributes.Returns.Builder setOutcomesValue(int index, int value)

The financial outcomes available for a return.

repeated .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnOutcome outcomes = 6;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for outcomes to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setPolicyUrl(String value)

public ProductAttributes.Returns.Builder setPolicyUrl(String value)

The URL of the return policy.

optional string policy_url = 11;

Parameter
Name Description
value String

The policyUrl to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setPolicyUrlBytes(ByteString value)

public ProductAttributes.Returns.Builder setPolicyUrlBytes(ByteString value)

The URL of the return policy.

optional string policy_url = 11;

Parameter
Name Description
value ByteString

The bytes for policyUrl to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setRestockingFee(Price value)

public ProductAttributes.Returns.Builder setRestockingFee(Price value)

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

setRestockingFee(Price.Builder builderForValue)

public ProductAttributes.Returns.Builder setRestockingFee(Price.Builder builderForValue)

A flat restocking fee penalty.

.google.shopping.type.Price restocking_fee = 9;

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

setRestockingPercentageFee(double value)

public ProductAttributes.Returns.Builder setRestockingPercentageFee(double value)

A percentage restocking fee penalty.

double restocking_percentage_fee = 10;

Parameter
Name Description
value double

The restockingPercentageFee to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setShippingFee(Price value)

public ProductAttributes.Returns.Builder setShippingFee(Price value)

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

setShippingFee(Price.Builder builderForValue)

public ProductAttributes.Returns.Builder setShippingFee(Price.Builder builderForValue)

The fixed cost out-of-pocket for a customer to return an item.

optional .google.shopping.type.Price shipping_fee = 7;

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

setShippingFeeType(ProductAttributes.Returns.ReturnShippingFeeType value)

public ProductAttributes.Returns.Builder setShippingFeeType(ProductAttributes.Returns.ReturnShippingFeeType value)

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Parameter
Name Description
value ProductAttributes.Returns.ReturnShippingFeeType

The shippingFeeType to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setShippingFeeTypeValue(int value)

public ProductAttributes.Returns.Builder setShippingFeeTypeValue(int value)

The type of return shipping fee.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnShippingFeeType shipping_fee_type = 8;

Parameter
Name Description
value int

The enum numeric value on the wire for shippingFeeType to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setWindowDays(long value)

public ProductAttributes.Returns.Builder setWindowDays(long value)

The duration of the return window in days.

optional int64 window_days = 2;

Parameter
Name Description
value long

The windowDays to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setWindowType(ProductAttributes.Returns.ReturnWindowType value)

public ProductAttributes.Returns.Builder setWindowType(ProductAttributes.Returns.ReturnWindowType value)

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Parameter
Name Description
value ProductAttributes.Returns.ReturnWindowType

The windowType to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.

setWindowTypeValue(int value)

public ProductAttributes.Returns.Builder setWindowTypeValue(int value)

Special return window behavior.

optional .google.shopping.merchant.products.v1.ProductAttributes.Returns.ReturnWindowType window_type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for windowType to set.

Returns
Type Description
ProductAttributes.Returns.Builder

This builder for chaining.