public static final class ProductAttributes.Returns extends GeneratedMessage implements ProductAttributes.ReturnsOrBuilderThe returns of the product.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.Returns
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.ReturnsImplements
ProductAttributes.ReturnsOrBuilderStatic Fields
COUNTRIES_FIELD_NUMBER
public static final int COUNTRIES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ITEM_CONDITIONS_FIELD_NUMBER
public static final int ITEM_CONDITIONS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
METHODS_FIELD_NUMBER
public static final int METHODS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
OUTCOMES_FIELD_NUMBER
public static final int OUTCOMES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
POLICY_URL_FIELD_NUMBER
public static final int POLICY_URL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESTOCKING_FEE_FIELD_NUMBER
public static final int RESTOCKING_FEE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESTOCKING_PERCENTAGE_FEE_FIELD_NUMBER
public static final int RESTOCKING_PERCENTAGE_FEE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SHIPPING_FEE_FIELD_NUMBER
public static final int SHIPPING_FEE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SHIPPING_FEE_TYPE_FIELD_NUMBER
public static final int SHIPPING_FEE_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
WINDOW_DAYS_FIELD_NUMBER
public static final int WINDOW_DAYS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
WINDOW_TYPE_FIELD_NUMBER
public static final int WINDOW_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ProductAttributes.Returns getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ProductAttributes.Returns.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns.Builder |
|
newBuilder(ProductAttributes.Returns prototype)
public static ProductAttributes.Returns.Builder newBuilder(ProductAttributes.Returns prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ProductAttributes.Returns |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns.Builder |
|
parseDelimitedFrom(InputStream input)
public static ProductAttributes.Returns parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ProductAttributes.Returns parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ProductAttributes.Returns parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ProductAttributes.Returns parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ProductAttributes.Returns parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ProductAttributes.Returns parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Returns parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ProductAttributes.Returns> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Returns> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
intThe 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 |
intThe 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 |
|
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 |
intThe 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 |
intThe 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 |
intThe 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 |
intThe 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 |
intThe 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 |
intThe 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. |
getParserForType()
public Parser<ProductAttributes.Returns> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Returns> |
|
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. |
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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ProductAttributes.Returns.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ProductAttributes.Returns.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns.Builder |
|
toBuilder()
public ProductAttributes.Returns.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Returns.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|